Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
42
app/views/projects/settings/_activities.html.erb
Normal file
42
app/views/projects/settings/_activities.html.erb
Normal file
|
@ -0,0 +1,42 @@
|
|||
<%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
|
||||
|
||||
<table class="list">
|
||||
<thead><tr>
|
||||
<th><%= l(:field_name) %></th>
|
||||
<th><%= l(:enumeration_system_activity) %></th>
|
||||
<% TimeEntryActivity.new.available_custom_fields.each do |value| %>
|
||||
<th><%= value.name %></th>
|
||||
<% end %>
|
||||
<th><%= l(:field_active) %></th>
|
||||
</tr></thead>
|
||||
|
||||
<% @project.activities(true).each do |enumeration| %>
|
||||
<%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
|
||||
<%= enumeration %>
|
||||
</td>
|
||||
<td class="tick"><%= checked_image !enumeration.project %></td>
|
||||
<% enumeration.custom_field_values.each do |value| %>
|
||||
<td>
|
||||
<%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
|
||||
</td>
|
||||
<% end %>
|
||||
<td>
|
||||
<%= ff.check_box :active %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<div class="contextual">
|
||||
<%= link_to(l(:button_reset), project_enumerations_path(@project),
|
||||
:method => :delete,
|
||||
:data => {:confirm => l(:text_are_you_sure)},
|
||||
:class => 'icon icon-del') %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
33
app/views/projects/settings/_boards.html.erb
Normal file
33
app/views/projects/settings/_boards.html.erb
Normal file
|
@ -0,0 +1,33 @@
|
|||
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
||||
<p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
|
||||
<% end %>
|
||||
|
||||
<% if @project.boards.any? %>
|
||||
<div class="table-list boards">
|
||||
<div class="table-list-header">
|
||||
<div class="table-list-cell"><%= l(:label_board) %></div>
|
||||
</div>
|
||||
<%= render_boards_tree(@project.boards) do |board, level| %>
|
||||
<div class="table-list-row">
|
||||
<div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
|
||||
<%= link_to board.name, project_board_path(@project, board) %>
|
||||
</div>
|
||||
<div class="table-list-cell description"><%= board.description %></div>
|
||||
<div class="table-list-cell buttons">
|
||||
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
||||
<%= reorder_handle(board) %>
|
||||
<%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
|
||||
<%= delete_link project_board_path(@project, board) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$(function() { $("div.sort-level").positionedItems(); });
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
29
app/views/projects/settings/_issue_categories.html.erb
Normal file
29
app/views/projects/settings/_issue_categories.html.erb
Normal file
|
@ -0,0 +1,29 @@
|
|||
<p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p>
|
||||
|
||||
<% if @project.issue_categories.any? %>
|
||||
<table class="list">
|
||||
<thead><tr>
|
||||
<th><%= l(:label_issue_category) %></th>
|
||||
<th><%= l(:field_assigned_to) %></th>
|
||||
<th></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% for category in @project.issue_categories %>
|
||||
<% unless category.new_record? %>
|
||||
<tr>
|
||||
<td class="name"><%= category.name %></td>
|
||||
<td><%= category.assigned_to.name if category.assigned_to %></td>
|
||||
<td class="buttons">
|
||||
<% if User.current.allowed_to?(:manage_categories, @project) %>
|
||||
<%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
|
||||
<%= delete_link issue_category_path(category) %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
40
app/views/projects/settings/_members.html.erb
Normal file
40
app/views/projects/settings/_members.html.erb
Normal file
|
@ -0,0 +1,40 @@
|
|||
<% members = @project.memberships.sorted.to_a %>
|
||||
|
||||
<p><%= link_to l(:label_member_new), new_project_membership_path(@project), :remote => true, :class => "icon icon-add" %></p>
|
||||
|
||||
<% if members.any? %>
|
||||
<table class="list members">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= l(:label_user) %> / <%= l(:label_group) %></th>
|
||||
<th><%= l(:label_role_plural) %></th>
|
||||
<th style="width:15%"></th>
|
||||
<%= call_hook(:view_projects_settings_members_table_header, :project => @project) %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% members.each do |member| %>
|
||||
<% next if member.new_record? %>
|
||||
<tr id="member-<%= member.id %>" class="member">
|
||||
<td class="name icon icon-<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td>
|
||||
<td class="roles">
|
||||
<span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span>
|
||||
<div id="member-<%= member.id %>-form"></div>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<%= link_to l(:button_edit),
|
||||
edit_membership_path(member),
|
||||
:remote => true,
|
||||
:class => 'icon icon-edit' %>
|
||||
<%= delete_link membership_path(member),
|
||||
:remote => true,
|
||||
:data => (!User.current.admin? && member.include?(User.current) ? {:confirm => l(:text_own_membership_delete_confirmation)} : {}) if member.deletable? %>
|
||||
</td>
|
||||
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
18
app/views/projects/settings/_modules.html.erb
Normal file
18
app/views/projects/settings/_modules.html.erb
Normal file
|
@ -0,0 +1,18 @@
|
|||
<%= form_for @project,
|
||||
:url => { :action => 'modules', :id => @project },
|
||||
:html => {:id => 'modules-form',
|
||||
:method => :post} do |f| %>
|
||||
|
||||
<fieldset class="box">
|
||||
<legend><%= l(:text_select_project_modules) %></legend>
|
||||
|
||||
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
||||
<p><label><%= check_box_tag 'enabled_module_names[]', m, @project.module_enabled?(m), :id => nil -%>
|
||||
<%= l_or_humanize(m, :prefix => "project_module_") %></label></p>
|
||||
<% end %>
|
||||
</fieldset>
|
||||
<p><%= check_all_links 'modules-form' %></p>
|
||||
|
||||
<p><%= submit_tag l(:button_save) %></p>
|
||||
|
||||
<% end %>
|
41
app/views/projects/settings/_repositories.html.erb
Normal file
41
app/views/projects/settings/_repositories.html.erb
Normal file
|
@ -0,0 +1,41 @@
|
|||
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
|
||||
<% end %>
|
||||
|
||||
<% if @project.repositories.any? %>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= l(:field_identifier) %></th>
|
||||
<th><%= l(:field_repository_is_default) %></th>
|
||||
<th><%= l(:label_scm) %></th>
|
||||
<th><%= l(:label_repository) %></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @project.repositories.sort.each do |repository| %>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<%= link_to repository.identifier,
|
||||
{:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
|
||||
</td>
|
||||
<td><%= checked_image repository.is_default? %></td>
|
||||
<td><%= repository.scm_name %></td>
|
||||
<td><%= repository.url %></td>
|
||||
<td class="buttons">
|
||||
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
||||
:class => 'icon icon-user') %>
|
||||
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
||||
:class => 'icon icon-edit') %>
|
||||
<%= delete_link repository_path(repository) %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
53
app/views/projects/settings/_versions.html.erb
Normal file
53
app/views/projects/settings/_versions.html.erb
Normal file
|
@ -0,0 +1,53 @@
|
|||
<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>
|
||||
|
||||
<%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %>
|
||||
<fieldset><legend><%= l(:label_filter_plural) %></legend>
|
||||
<label for='status'><%= l(:field_status) %>:</label>
|
||||
<%= select_tag 'version_status', options_for_select([[l(:label_all), '']] + Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, @version_status), :onchange => "this.form.submit(); return false;" %>
|
||||
<label for='name'><%= l(:label_version) %>:</label>
|
||||
<%= text_field_tag 'version_name', @version_name, :size => 30 %>
|
||||
<%= submit_tag l(:button_apply), :name => nil %>
|
||||
<%= link_to l(:button_clear), settings_project_path(@project, :tab => 'versions'), :class => 'icon icon-reload' %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if @versions.present? %>
|
||||
<table class="list versions">
|
||||
<thead><tr>
|
||||
<th><%= l(:label_version) %></th>
|
||||
<th><%= l(:field_effective_date) %></th>
|
||||
<th><%= l(:field_description) %></th>
|
||||
<th><%= l(:field_status) %></th>
|
||||
<th><%= l(:field_sharing) %></th>
|
||||
<th><%= l(:label_wiki_page) %></th>
|
||||
<th style="width:15%"></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% @versions.sort.each do |version| %>
|
||||
<tr class="version <%=h version.status %> <%= 'shared' if version.project != @project %>">
|
||||
<td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td>
|
||||
<td class="date"><%= format_date(version.effective_date) %></td>
|
||||
<td class="description"><%= version.description %></td>
|
||||
<td class="status"><%= l("version_status_#{version.status}") %></td>
|
||||
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
|
||||
<td><%= link_to_if_authorized(version.wiki_page_title, {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
|
||||
<td class="buttons">
|
||||
<% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
|
||||
<%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %>
|
||||
<%= delete_link version_path(version) %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
||||
|
||||
<div class="contextual">
|
||||
<% if @versions.any? %>
|
||||
<%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
|
||||
<% end %>
|
||||
</div>
|
19
app/views/projects/settings/_wiki.html.erb
Normal file
19
app/views/projects/settings/_wiki.html.erb
Normal file
|
@ -0,0 +1,19 @@
|
|||
<%= labelled_form_for @wiki,
|
||||
:as => :wiki,
|
||||
:url => { :controller => 'wikis', :action => 'edit', :id => @project },
|
||||
:remote => true, :method => 'post' do |f| %>
|
||||
|
||||
<%= error_messages_for 'wiki' %>
|
||||
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :start_page, :size => 60, :required => true %>
|
||||
<em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em></p>
|
||||
</div>
|
||||
|
||||
<div class="contextual">
|
||||
<%= link_to(l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project},
|
||||
:class => 'icon icon-del') if @wiki && !@wiki.new_record? %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag((@wiki.nil? || @wiki.new_record?) ? l(:button_create) : l(:button_save)) %>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue