Project

General

Profile

Patch #25853 » move_left_bottom_links_from_project_settings_above_v2.patch

Marius BĂLTEANU, 2018-09-20 20:04

View differences:

app/views/projects/settings/_activities.html.erb
1
<div class="contextual">
2
<%= link_to(l(:button_reset), project_enumerations_path(@project),
3
            :method => :delete,
4
            :data => {:confirm => l(:text_are_you_sure)},
5
            :class => 'icon icon-del') %>
6
</div>
7

  
1 8
<%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2 9

  
3 10
<table class="list">
......
31 38
  <% end %>
32 39
</table>
33 40

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_enumerations_path(@project),
36
            :method => :delete,
37
            :data => {:confirm => l(:text_are_you_sure)},
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41 41
<%= submit_tag l(:button_save) %>
42 42
<% end %>
app/views/projects/settings/_versions.html.erb
1
<p><%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p>
1
<% if @versions.any? %>
2
  <div class="contextual">
3
    <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :class => 'icon icon-locked', :method => :put %>
4
  </div>
5
<% end %>
6
<p>
7
  <%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %>
8
</p>
2 9

  
3 10
<%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %>
4 11
<fieldset><legend><%= l(:label_filter_plural) %></legend>
......
47 54
<% else %>
48 55
<p class="nodata"><%= l(:label_no_data) %></p>
49 56
<% end %>
50

  
51
<div class="contextual">
52
<% if @versions.any? %>
53
  <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
54
<% end %>
55
</div>
(8-8/8)