Feature #1739 » redmine_changeable_author_v1.0.patch
| app/helpers/issues_helper.rb (revision 27112) | ||
|---|---|---|
| 69 | 69 |
when 'attr' |
| 70 | 70 |
label = l(("field_" + detail.prop_key.to_s.gsub(/\_id$/, "")).to_sym)
|
| 71 | 71 |
case detail.prop_key |
| 72 |
when 'author_id' |
|
| 73 |
u = Principal.find_by_id(detail.value) and value = u.name if detail.value |
|
| 74 |
u = Principal.find_by_id(detail.old_value) and old_value = u.name if detail.old_value |
|
| 72 | 75 |
when 'due_date', 'start_date' |
| 73 | 76 |
value = format_date(detail.value.to_date) if detail.value |
| 74 | 77 |
old_value = format_date(detail.old_value.to_date) if detail.old_value |
| app/views/issues/show.rhtml (revision 27112) | ||
|---|---|---|
| 6 | 6 |
<%= avatar(@issue.author, :size => "50") %> |
| 7 | 7 |
<h3><%=h @issue.subject %></h3> |
| 8 | 8 |
<p class="author"> |
| 9 |
<%= authoring @issue.created_on, @issue.author %>.
|
|
| 9 |
<%= l(:label_added_time, time_tag(@issue.created_on)) %>.
|
|
| 10 | 10 |
<% if @issue.created_on != @issue.updated_on %> |
| 11 | 11 |
<%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. |
| 12 | 12 |
<% end %> |
| ... | ... | |
| 14 | 14 | |
| 15 | 15 |
<table class="attributes"> |
| 16 | 16 |
<tr> |
| 17 |
<th class="author"><%=l(:field_author)%>:</th><td class="author"><%= avatar(@issue.author, :size => "14") %><%= @issue.author ? link_to_user(@issue.author) : "-" %></td> |
|
| 18 |
</tr> |
|
| 19 |
<tr> |
|
| 17 | 20 |
<th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> |
| 18 | 21 |
<th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> |
| 19 | 22 |
</tr> |
| app/views/issues/_attributes.rhtml (revision 27112) | ||
|---|---|---|
| 2 | 2 | |
| 3 | 3 |
<div class="splitcontentleft"> |
| 4 | 4 |
<% if @issue.new_record? || @allowed_statuses.any? %> |
| 5 |
<% if User.current.allowed_to?(:edit_issue_author, @project) %> |
|
| 6 |
<p><%= f.select :author_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => false, :required => true %></p>
|
|
| 7 |
<% end %> |
|
| 5 | 8 |
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
|
| 6 | 9 |
<% else %> |
| 7 | 10 |
<p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p> |
| config/locales/en.yml (revision 27112) | ||
|---|---|---|
| 198 | 198 |
field_filename: File |
| 199 | 199 |
field_filesize: Size |
| 200 | 200 |
field_downloads: Downloads |
| 201 |
field_author: Author
|
|
| 201 |
field_author: Responsible
|
|
| 202 | 202 |
field_created_on: Created |
| 203 | 203 |
field_updated_on: Updated |
| 204 | 204 |
field_field_format: Format |
| ... | ... | |
| 353 | 353 |
permission_add_issue_notes: Add notes |
| 354 | 354 |
permission_edit_issue_notes: Edit notes |
| 355 | 355 |
permission_edit_own_issue_notes: Edit own notes |
| 356 |
permission_edit_issue_author: Edit author |
|
| 356 | 357 |
permission_move_issues: Move issues |
| 357 | 358 |
permission_delete_issues: Delete issues |
| 358 | 359 |
permission_manage_public_queries: Manage public queries |
| ... | ... | |
| 694 | 695 |
label_feeds_access_key_created_on: "RSS access key created {{value}} ago"
|
| 695 | 696 |
label_module_plural: Modules |
| 696 | 697 |
label_added_time_by: "Added by {{author}} {{age}} ago"
|
| 698 |
label_added_time: "Added {{value}} ago"
|
|
| 697 | 699 |
label_updated_time_by: "Updated by {{author}} {{age}} ago"
|
| 698 | 700 |
label_updated_time: "Updated {{value}} ago"
|
| 699 | 701 |
label_jump_to_a_project: Jump to a project... |
| config/locales/sk.yml (revision 27112) | ||
|---|---|---|
| 179 | 179 |
field_filename: Súbor |
| 180 | 180 |
field_filesize: Veľkosť |
| 181 | 181 |
field_downloads: Stiahnuté |
| 182 |
field_author: Autor
|
|
| 182 |
field_author: Zodpovedný
|
|
| 183 | 183 |
field_created_on: Vytvorené |
| 184 | 184 |
field_updated_on: Aktualizované |
| 185 | 185 |
field_field_format: Formát |
| ... | ... | |
| 567 | 567 |
label_feeds_access_key_created_on: "Prístupový klúč pre RSS bol vytvorený pred {{value}}"
|
| 568 | 568 |
label_module_plural: Moduly |
| 569 | 569 |
label_added_time_by: "Pridané užívateľom {{author}} pred {{age}}"
|
| 570 |
label_added_time: "Pridané pred {{value}}"
|
|
| 570 | 571 |
label_updated_time: "Aktualizované pred {{value}}"
|
| 571 | 572 |
label_jump_to_a_project: Zvoliť projekt... |
| 572 | 573 |
label_file_plural: Súbory |
| ... | ... | |
| 774 | 775 |
permission_rename_wiki_pages: Premenovanie Wiki strániek |
| 775 | 776 |
permission_edit_time_entries: Úprava záznamov o strávenom čase |
| 776 | 777 |
permission_edit_own_issue_notes: Úprava vlastných poznámok úlohy |
| 778 |
permission_edit_issue_author: Úprava autora |
|
| 777 | 779 |
setting_gravatar_enabled: Použitie užívateľských Gravatar ikon |
| 778 | 780 |
permission_edit_own_messages: Úprava vlastných správ |
| 779 | 781 |
permission_delete_own_messages: Mazanie vlastných správ |
| lib/redmine.rb (revision 27112) | ||
|---|---|---|
| 49 | 49 |
map.permission :add_issue_notes, {:issues => [:edit, :reply]}
|
| 50 | 50 |
map.permission :edit_issue_notes, {:journals => :edit}, :require => :loggedin
|
| 51 | 51 |
map.permission :edit_own_issue_notes, {:journals => :edit}, :require => :loggedin
|
| 52 |
map.permission :edit_issue_author, {}
|
|
| 52 | 53 |
map.permission :move_issues, {:issues => :move}, :require => :loggedin
|
| 53 | 54 |
map.permission :delete_issues, {:issues => :destroy}, :require => :member
|
| 54 | 55 |
# Queries |