##// END OF EJS Templates
Set titles on Groups pages (#14517)...
Jean-Philippe Lang -
r11819:1e738fbacaa0
parent child
Show More
@@ -1,5 +1,3
1 <h2><%= link_to l(:label_group_plural), groups_path %> &#187; <%= h(@group) %></h2>
1 <%= title [l(:label_group_plural), groups_path], @group.name %>
2
2
3 <%= render_tabs group_settings_tabs %>
3 <%= render_tabs group_settings_tabs %>
4
5 <% html_title(l(:label_group), @group, l(:label_administration)) -%>
@@ -1,26 +1,26
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
2 <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
3 </div>
3 </div>
4
4
5 <h2><%= l(:label_group_plural) %></h2>
5 <%= title l(:label_group_plural) %>
6
6
7 <% if @groups.any? %>
7 <% if @groups.any? %>
8 <table class="list groups">
8 <table class="list groups">
9 <thead><tr>
9 <thead><tr>
10 <th><%=l(:label_group)%></th>
10 <th><%=l(:label_group)%></th>
11 <th><%=l(:label_user_plural)%></th>
11 <th><%=l(:label_user_plural)%></th>
12 <th></th>
12 <th></th>
13 </tr></thead>
13 </tr></thead>
14 <tbody>
14 <tbody>
15 <% @groups.each do |group| %>
15 <% @groups.each do |group| %>
16 <tr class="<%= cycle 'odd', 'even' %>">
16 <tr class="<%= cycle 'odd', 'even' %>">
17 <td><%= link_to h(group), edit_group_path(group) %></td>
17 <td><%= link_to h(group), edit_group_path(group) %></td>
18 <td align="center"><%= group.users.size %></td>
18 <td align="center"><%= group.users.size %></td>
19 <td class="buttons"><%= delete_link group %></td>
19 <td class="buttons"><%= delete_link group %></td>
20 </tr>
20 </tr>
21 <% end %>
21 <% end %>
22 </tbody>
22 </tbody>
23 </table>
23 </table>
24 <% else %>
24 <% else %>
25 <p class="nodata"><%= l(:label_no_data) %></p>
25 <p class="nodata"><%= l(:label_no_data) %></p>
26 <% end %>
26 <% end %>
@@ -1,9 +1,9
1 <h2><%= link_to l(:label_group_plural), groups_path %> &#187; <%= l(:label_group_new) %></h2>
1 <%= title [l(:label_group_plural), groups_path], l(:label_group_new) %>
2
2
3 <%= labelled_form_for @group do |f| %>
3 <%= labelled_form_for @group do |f| %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
5 <p>
5 <p>
6 <%= f.submit l(:button_create) %>
6 <%= f.submit l(:button_create) %>
7 <%= f.submit l(:button_create_and_continue), :name => 'continue' %>
7 <%= f.submit l(:button_create_and_continue), :name => 'continue' %>
8 </p>
8 </p>
9 <% end %>
9 <% end %>
@@ -1,7 +1,7
1 <h2><%= link_to l(:label_group_plural), groups_path %> &#187; <%=h @group %></h2>
1 <%= title [l(:label_group_plural), groups_path], @group.name %>
2
2
3 <ul>
3 <ul>
4 <% @group.users.each do |user| %>
4 <% @group.users.each do |user| %>
5 <li><%=h user %></li>
5 <li><%=h user %></li>
6 <% end %>
6 <% end %>
7 </ul>
7 </ul>
General Comments 0
You need to be logged in to leave comments. Login now