OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/homescreen/blocks/_users.html.erb

26 lines
798 B

<h3 class="widget-box--header">
<span class="icon-context icon-group"></span>
<span class="widget-box--header-title"><%= l(:label_user_plural) %></span>
</h3>
<p class="widget-box--additional-info"><%= l('homescreen.additional.users') %></p>
<% unless @newest_users.empty? %>
<ul class="widget-box--arrow-links">
<% @newest_users.each do |user| %>
<li>
<%= link_to user, user_path(user), :title => user.name %>
<small>(<%= format_date(user.created_on) %>)</small>
</li>
<% end %>
</ul>
<% end %>
<div class="widget-box--buttons">
<% if User.current.admin? %>
<%= link_to new_user_path, class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= l(:label_invite_user) %></span>
<% end %>
<% end %>
</div>