##// END OF EJS Templates
Adds a setting to choose which role is given to a non-admin user who creates a project (#1007)....
Adds a setting to choose which role is given to a non-admin user who creates a project (#1007). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2754 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2638:09a613b03598
r2655:52b5b2920329
Show More
show.rhtml
68 lines | 2.5 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Adds 'Edit' link on account/show for admin users....
r1732 <div class="contextual">
<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
</div>
Jean-Philippe Lang
Changes ApplicationHelper#gravatar_for_mail to #avatar that takes a User or a String (less code in views)....
r1998 <h2><%= avatar @user %> <%=h @user.name %></h2>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064 <div class="splitcontentleft">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <ul>
Jean-Philippe Lang
Slight changes to profile on account page and last connexion date added....
r2069 <% unless @user.pref.hide_mail %>
Jean-Philippe Lang
Obfuscates email address on user's account page using javascript....
r2070 <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
Jean-Philippe Lang
Slight changes to profile on account page and last connexion date added....
r2069 <% end %>
<% for custom_value in @custom_values %>
<% if !custom_value.value.empty? %>
Jean-Philippe Lang
Escape custom field name....
r2638 <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
Jean-Philippe Lang
Slight changes to profile on account page and last connexion date added....
r2069 <% end %>
<% end %>
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
<% unless @user.last_login_on.nil? %>
<li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
<% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </ul>
Jean-Philippe Lang
Don't show "Projects" label if projects list is empty....
r565 <% unless @memberships.empty? %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <h3><%=l(:label_project_plural)%></h3>
Jean-Philippe Lang
Fixed confidentiality issue on account/show....
r564 <ul>
<% for membership in @memberships %>
Jean-Philippe Lang
Escapes HTML tags....
r1598 <li><%= link_to(h(membership.project.name), :controller => 'projects', :action => 'show', :id => membership.project) %>
Jean-Philippe Lang
Sort roles on account view....
r2637 (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
Fixed confidentiality issue on account/show....
r564 </ul>
Jean-Philippe Lang
Don't show "Projects" label if projects list is empty....
r565 <% end %>
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064 </div>
<div class="splitcontentright">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064 <% unless @events_by_day.empty? %>
Jean-Philippe Lang
Fixes user's activity link (#2853)....
r2468 <h3><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3>
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <p>
Jean-Philippe Lang
Some deprecation fixes (end_form_tag and count API)....
r665 <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
Eric Davis
Added an option to turn user Gravatars on or off...
r1970 </p>
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064
<div id="activity">
<% @events_by_day.keys.sort.reverse.each do |day| %>
<h4><%= format_activity_day(day) %></h4>
<dl>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
<dt class="<%= e.event_type %>">
<span class="time"><%= format_time(e.event_datetime, false) %></span>
<%= content_tag('span', h(e.project), :class => 'project') %>
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>
<dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
<% end -%>
</dl>
<% end -%>
</div>
Jean-Philippe Lang
Adds atom feed on user's account page....
r2067
Jean-Philippe Lang
Adds an helper to render other formats download links....
r2331 <% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:controller => 'projects', :action => 'activity', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
<% end %>
Jean-Philippe Lang
Adds atom feed on user's account page....
r2067
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, :controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
<% end %>
Jean-Philippe Lang
Display latest user's activity on account/show view....
r2064 <% end %>
</div>
<% html_title @user.name %>