add_issue_html_title_format.diff

Artem Baikuzin, 2017-11-29 16:41

Download (3.48 KB)

View differences:

app/views/issues/show.html.erb
149 149
  <%= f.link_to 'PDF' %>
150 150
<% end %>
151 151

  
152
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
152
<% if Setting.issue_html_title == '0' %>
153
  <% title = "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
154
<% else %>
155
  <% title = "##{@issue.id} #{@issue.tracker.name}: #{@issue.subject}" %>
156
<% end %>
157

  
158
<% html_title title %>
153 159

  
154 160
<% content_for :sidebar do %>
155 161
  <%= render :partial => 'issues/sidebar' %>
app/views/settings/_display.html.erb
28 28
<p><%= setting_text_field :thumbnails_size, :size => 6 %></p>
29 29

  
30 30
<p><%= setting_select :new_item_menu_tab, [[l(:label_none), '0'], [l(:label_new_project_issue_tab_enabled), '1'], [l(:label_new_object_tab_enabled), '2']] %></p>
31

  
32
<p><%= setting_select :issue_html_title, [[l(:label_issue_html_title_tracker_first), '0'], [l(:label_issue_html_title_number_first), '1']] %></p>
31 33
</div>
32 34

  
33 35
<%= submit_tag l(:button_save) %>
config/locales/en.yml
467 467
  setting_time_entry_list_defaults: Timelog list defaults
468 468
  setting_timelog_accept_0_hours: Accept time logs with 0 hours
469 469
  setting_timelog_max_hours_per_day: Maximum hours that can be logged per day and user
470
  setting_issue_html_title: Issue HTML title format
470 471

  
471 472
  permission_add_project: Create project
472 473
  permission_add_subprojects: Create subprojects
......
1025 1026
  label_font_monospace: Monospaced font
1026 1027
  label_font_proportional: Proportional font
1027 1028
  label_last_notes: Last notes
1029
  label_issue_html_title_number_first: "#Number Tracker: Subject"
1030
  label_issue_html_title_tracker_first: "Tracker #Number: Subject"
1028 1031

  
1029 1032
  button_login: Login
1030 1033
  button_submit: Submit
config/locales/ru.yml
1334 1334
  setting_timelog_accept_0_hours: Accept time logs with 0 hours
1335 1335
  setting_timelog_max_hours_per_day: Maximum hours that can be logged per day and user
1336 1336
  label_x_revisions: "%{count} revisions"
1337
  setting_issue_html_title: Формат вкладки браузера у задач
1338
  label_issue_html_title_number_first: "#Номер Трекер: Тема"
1339
  label_issue_html_title_tracker_first: "Трекер #Номер: Тема"
config/settings.yml
306 306
timelog_max_hours_per_day:
307 307
  format: int
308 308
  default: 999
309
issue_html_title:
310
  default: 0
309
-