Updating emailer
This commit is contained in:
		
							parent
							
								
									15836b4f4e
								
							
						
					
					
						commit
						008ceaed9e
					
				@ -4,7 +4,7 @@
 | 
				
			|||||||
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
 | 
					    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
 | 
				
			||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <p><b>From:</b> <%= link_to @from_user.name, @from_user %></p>
 | 
					    <p><b>From:</b> <%= link_to @from_user.name, user_url(@from_user) %></p>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
      <%= simple_format @body %>
 | 
					      <%= simple_format @body %>
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,7 @@
 | 
				
			|||||||
  <%= link_to image_tag('/facebook.png', :class => 'social-icon', :title => "Facebook"), @user.facebook_url, :class => 'social-link' if @user.facebook_url.present? %>
 | 
					  <%= link_to image_tag('/facebook.png', :class => 'social-icon', :title => "Facebook"), @user.facebook_url, :class => 'social-link' if @user.facebook_url.present? %>
 | 
				
			||||||
  <%= link_to image_tag('/github.png', :class => 'social-icon', :title => "Github"), @user.github_url, :class => 'social-link' if @user.github_url.present? %>
 | 
					  <%= link_to image_tag('/github.png', :class => 'social-icon', :title => "Github"), @user.github_url, :class => 'social-link' if @user.github_url.present? %>
 | 
				
			||||||
  <%= link_to image_tag('/website.png', :class => 'social-icon', :title => "Website"), @user.website_url, :class => 'social-link' if @user.website_url.present? %>
 | 
					  <%= link_to image_tag('/website.png', :class => 'social-icon', :title => "Website"), @user.website_url, :class => 'social-link' if @user.website_url.present? %>
 | 
				
			||||||
 | 
					<%= link_to "Email User", user_compose_email_path(@user), :class => 'btn' %>
 | 
				
			||||||
</h2>
 | 
					</h2>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -36,7 +36,7 @@ Dooraccess::Application.routes.draw do
 | 
				
			|||||||
  match 'users/merge' => 'users#merge_action', :via => :post # Merge action
 | 
					  match 'users/merge' => 'users#merge_action', :via => :post # Merge action
 | 
				
			||||||
  match 'users/inactive' => 'users#inactive' # Inactive users report
 | 
					  match 'users/inactive' => 'users#inactive' # Inactive users report
 | 
				
			||||||
  resources :users do 
 | 
					  resources :users do 
 | 
				
			||||||
    get 'email' => 'users#compose_email'
 | 
					    get 'email' => 'users#compose_email', :as => "compose_email"
 | 
				
			||||||
    post 'email' => 'users#send_email'
 | 
					    post 'email' => 'users#send_email'
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
  match 'users/create' => 'users#create', :via => :post  # Use POST users/create instead of POST users to avoid devise conflict
 | 
					  match 'users/create' => 'users#create', :via => :post  # Use POST users/create instead of POST users to avoid devise conflict
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user