From: Toshi MARUYAMA Date: Fri, 2 Sep 2011 04:41:44 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/users/show.rhtml. X-Git-Tag: 1.3.0~912 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6b298ca3770bc652a567ad8b967e57f37c17dae6;p=redmine.git rename .rhtml to .html.erb of app/views/users/show.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7054 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb new file mode 100644 index 000000000..3a3de34e7 --- /dev/null +++ b/app/views/users/show.html.erb @@ -0,0 +1,70 @@ +
+<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> +
+ +

<%= avatar @user, :size => "50" %> <%=h @user.name %>

+ +
+ + +<% unless @memberships.empty? %> +

<%=l(:label_project_plural)%>

+ +<% end %> +<%= call_hook :view_account_left_bottom, :user => @user %> +
+ +
+ +<% unless @events_by_day.empty? %> +

<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>

+ +

+<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> +

+ +
+<% @events_by_day.keys.sort.reverse.each do |day| %> +

<%= format_activity_day(day) %>

+
+<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> +
+ <%= format_time(e.event_datetime, false) %> + <%= content_tag('span', h(e.project), :class => 'project') %> + <%= link_to format_activity_title(e.event_title), e.event_url %>
+
<%= format_activity_description(e.event_description) %>
+<% end -%> +
+<% end -%> +
+ +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> +<% end %> +<% end %> +<%= call_hook :view_account_right_bottom, :user => @user %> +
+ +<% html_title h(@user.name) %> diff --git a/app/views/users/show.rhtml b/app/views/users/show.rhtml deleted file mode 100644 index 3a3de34e7..000000000 --- a/app/views/users/show.rhtml +++ /dev/null @@ -1,70 +0,0 @@ -
-<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> -
- -

<%= avatar @user, :size => "50" %> <%=h @user.name %>

- -
- - -<% unless @memberships.empty? %> -

<%=l(:label_project_plural)%>

- -<% end %> -<%= call_hook :view_account_left_bottom, :user => @user %> -
- -
- -<% unless @events_by_day.empty? %> -

<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>

- -

-<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> -

- -
-<% @events_by_day.keys.sort.reverse.each do |day| %> -

<%= format_activity_day(day) %>

-
-<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> -
- <%= format_time(e.event_datetime, false) %> - <%= content_tag('span', h(e.project), :class => 'project') %> - <%= link_to format_activity_title(e.event_title), e.event_url %>
-
<%= format_activity_description(e.event_description) %>
-<% end -%> -
-<% end -%> -
- -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> -<% end %> -<% end %> -<%= call_hook :view_account_right_bottom, :user => @user %> -
- -<% html_title h(@user.name) %>