Feature #1739 » redmine_changeable_author_v1.0.4.patch
| app/helpers/issues_helper.rb | ||
|---|---|---|
|
value = format_date(detail.value.to_date) if detail.value
|
||
|
old_value = format_date(detail.old_value.to_date) if detail.old_value
|
||
|
when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id', 'priority_id', 'category_id', 'fixed_version_id'].include?(detail.prop_key)
|
||
|
when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id', 'priority_id', 'category_id', 'fixed_version_id', 'author_id'].include?(detail.prop_key)
|
||
|
value = find_name_by_reflection(field, detail.value)
|
||
|
old_value = find_name_by_reflection(field, detail.old_value)
|
||
| app/models/issue.rb | ||
|---|---|---|
|
status_id
|
||
|
parent_issue_id
|
||
|
category_id
|
||
|
author_id
|
||
|
assigned_to_id
|
||
|
priority_id
|
||
|
fixed_version_id
|
||
| app/views/issues/_attributes.rhtml | ||
|---|---|---|
|
<div class="splitcontentleft">
|
||
|
<% if @issue.new_record? || @allowed_statuses.any? %>
|
||
|
<% if User.current.allowed_to?(:edit_issue_author, @project) %>
|
||
|
<p><%= f.select :author_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => false, :required => true %></p>
|
||
|
<% end %>
|
||
|
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
|
||
|
<% else %>
|
||
|
<p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>
|
||
| app/views/issues/show.rhtml | ||
|---|---|---|
|
<%= render_issue_subject_with_tree(@issue) %>
|
||
|
</div>
|
||
|
<p class="author">
|
||
|
<%= authoring @issue.created_on, @issue.author %>.
|
||
|
<%= l(:label_added_time, time_tag(@issue.created_on)) %>.
|
||
|
<% if @issue.created_on != @issue.updated_on %>
|
||
|
<%= l(:label_updated_time, time_tag(@issue.updated_on)) %>.
|
||
|
<% end %>
|
||
| ... | ... | |
|
<table class="attributes">
|
||
|
<tr>
|
||
|
<th class="author"><%=l(:field_author)%>:</th><td class="author"><%= avatar(@issue.author, :size => "14") %><%= @issue.author ? link_to_user(@issue.author) : "-" %></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td>
|
||
|
<th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td>
|
||
|
</tr>
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
label_feeds_access_key_created_on: "Přístupový klíč pro RSS byl vytvořen před {{value}}"
|
||
|
label_module_plural: Moduly
|
||
|
label_added_time_by: "Přidáno uživatelem {{author}} před {{age}}"
|
||
|
label_added_time: "Přidáno před {{age}}"
|
||
|
label_updated_time: "Aktualizováno před {{value}}"
|
||
|
label_jump_to_a_project: Vyberte projekt...
|
||
|
label_file_plural: Soubory
|
||
| ... | ... | |
|
permission_rename_wiki_pages: Přejmenovávání Wiki stránek
|
||
|
permission_edit_time_entries: Upravování záznamů o stráveném času
|
||
|
permission_edit_own_issue_notes: Upravování vlastních poznámek
|
||
|
permission_edit_issue_author: Úprava autora
|
||
|
setting_gravatar_enabled: Použít uživatelské ikony Gravatar
|
||
|
label_example: Příklad
|
||
|
text_repository_usernames_mapping: "Vybrat nebo upravit mapování mezi Redmine uživateli a uživatelskými jmény nalezenými v logu repozitáře.\nUživatelé se shodným Redmine uživatelským jménem a uživatelským jménem v repozitáři jsou mapovaní automaticky."
|
||
| config/locales/en.yml | ||
|---|---|---|
|
permission_add_issue_notes: Add notes
|
||
|
permission_edit_issue_notes: Edit notes
|
||
|
permission_edit_own_issue_notes: Edit own notes
|
||
|
permission_edit_issue_author: Edit author
|
||
|
permission_move_issues: Move issues
|
||
|
permission_delete_issues: Delete issues
|
||
|
permission_manage_public_queries: Manage public queries
|
||
| ... | ... | |
|
label_feeds_access_key_created_on: "RSS access key created {{value}} ago"
|
||
|
label_module_plural: Modules
|
||
|
label_added_time_by: "Added by {{author}} {{age}} ago"
|
||
|
label_added_time: "Added {{value}} ago"
|
||
|
label_updated_time_by: "Updated by {{author}} {{age}} ago"
|
||
|
label_updated_time: "Updated {{value}} ago"
|
||
|
label_jump_to_a_project: Jump to a project...
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
label_feeds_access_key_created_on: "Prístupový klúč pre RSS bol vytvorený pred {{value}}"
|
||
|
label_module_plural: Moduly
|
||
|
label_added_time_by: "Pridané užívateľom {{author}} pred {{age}}"
|
||
|
label_added_time: "Pridané pred {{value}}"
|
||
|
label_updated_time: "Aktualizované pred {{value}}"
|
||
|
label_jump_to_a_project: Zvoliť projekt...
|
||
|
label_file_plural: Súbory
|
||
| ... | ... | |
|
permission_rename_wiki_pages: Premenovanie Wiki strániek
|
||
|
permission_edit_time_entries: Úprava záznamov o strávenom čase
|
||
|
permission_edit_own_issue_notes: Úprava vlastných poznámok úlohy
|
||
|
permission_edit_issue_author: Úprava autora
|
||
|
setting_gravatar_enabled: Použitie užívateľských Gravatar ikon
|
||
|
permission_edit_own_messages: Úprava vlastných správ
|
||
|
permission_delete_own_messages: Mazanie vlastných správ
|
||
| lib/redmine.rb | ||
|---|---|---|
|
map.permission :add_issue_notes, {:issues => [:edit, :update], :journals => [:new]}
|
||
|
map.permission :edit_issue_notes, {:journals => :edit}, :require => :loggedin
|
||
|
map.permission :edit_own_issue_notes, {:journals => :edit}, :require => :loggedin
|
||
|
map.permission :edit_issue_author, {}
|
||
|
map.permission :move_issues, {:issue_moves => [:new, :create]}, :require => :loggedin
|
||
|
map.permission :delete_issues, {:issues => :destroy}, :require => :member
|
||
|
# Queries
|
||