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" />
|
||||
</head>
|
||||
<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>
|
||||
<%= simple_format @body %>
|
||||
</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('/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 "Email User", user_compose_email_path(@user), :class => 'btn' %>
|
||||
</h2>
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ Dooraccess::Application.routes.draw do
|
|||
match 'users/merge' => 'users#merge_action', :via => :post # Merge action
|
||||
match 'users/inactive' => 'users#inactive' # Inactive users report
|
||||
resources :users do
|
||||
get 'email' => 'users#compose_email'
|
||||
get 'email' => 'users#compose_email', :as => "compose_email"
|
||||
post 'email' => 'users#send_email'
|
||||
end
|
||||
match 'users/create' => 'users#create', :via => :post # Use POST users/create instead of POST users to avoid devise conflict
|
||||
|
|
Loading…
Reference in New Issue
Block a user