Patch #2013 » skip_notification.patch
| app/controllers/issues_controller.rb (リビジョン 31) | ||
|---|---|---|
|
if !journal.new_record?
|
||
|
# Only send notification if something was actually changed
|
||
|
flash[:notice] = l(:notice_successful_update)
|
||
|
Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')
|
||
|
Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated') and params[:skip_notify].blank?
|
||
|
end
|
||
|
redirect_to(params[:back_to] || {:action => 'show', :id => @issue})
|
||
|
end
|
||
| app/views/issues/_edit.rhtml (リビジョン 31) | ||
|---|---|---|
|
</div>
|
||
|
<p><%= time_entry.text_field :comments, :size => 60 %></p>
|
||
|
<% @time_entry.custom_field_values.each do |value| %>
|
||
|
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
||
|
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
</fieldset>
|
||
|
<% end %>
|
||
|
|
||
|
<fieldset><legend><%= l(:field_notes) %></legend>
|
||
|
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
||
|
<%= wikitoolbar_for 'notes' %>
|
||
|
|
||
|
<p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
|
||
|
</fieldset>
|
||
|
</div>
|
||
|
|
||
|
<%= f.hidden_field :lock_version %>
|
||
|
<%= submit_tag l(:button_submit) %>
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
{ :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
|
||
|
:method => 'post',
|
||
|
:update => 'preview',
|
||
|
:with => 'Form.serialize("issue-form")',
|
||
|
:complete => "Element.scrollTo('preview')"
|
||
|
}, :accesskey => accesskey(:preview) %>
|
||
|
<label for=""><%= check_box_tag :skip_notify %><%= l(:label_skip_notify) %></label>
|
||
|
<% end %>
|
||
|
<div id="preview" class="wiki"></div>
|
||
| lang/lt.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Neimanoma panaikinti versiją
|
||
|
label_renamed: pervardintas
|
||
|
label_copied: nukopijuotas
|
||
|
label_skip_notify: Skip notification
|
||
| lang/uk.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/ro.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/zh.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_issue_priorities: 问题优先级
|
||
|
enumeration_doc_categories: 文档类别
|
||
|
enumeration_activities: 活动(时间跟踪)
|
||
|
label_skip_notify: Skip notification
|
||
| lang/ca.yml (リビジョン 31) | ||
|---|---|---|
|
setting_commit_logs_encoding: Commit messages encoding
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/pt.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Impossível apagar esta versão
|
||
|
label_renamed: renomeado
|
||
|
label_copied: copiado
|
||
|
label_skip_notify: Skip notification
|
||
| lang/da.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_issue_priorities: Sagsprioriteter
|
||
|
enumeration_doc_categories: Dokumentkategorier
|
||
|
enumeration_activities: Aktiviteter (tidsregistrering)
|
||
|
label_skip_notify: Skip notification
|
||
| lang/pt-br.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/sr.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/tr.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/ru.yml (リビジョン 31) | ||
|---|---|---|
|
text_wiki_destroy_confirmation: Вы уверены, что хотите удалить данную Wiki и все содержимое?
|
||
|
text_workflow_edit: Выберите роль и трекер для редактирования последовательности состояний
|
||
|
label_skip_notify: Skip notification
|
||
| lang/de.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_issue_priorities: Ticket-Prioritäten
|
||
|
enumeration_doc_categories: Dokumentenkategorien
|
||
|
enumeration_activities: Aktivitäten (Zeiterfassung)
|
||
|
label_skip_notify: Skip notification
|
||
| lang/bg.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/sv.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/ja.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: この更新を通知しない
|
||
| lang/he.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/fi.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/en.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_issue_priorities: Issue priorities
|
||
|
enumeration_doc_categories: Document categories
|
||
|
enumeration_activities: Activities (time tracking)
|
||
|
label_skip_notify: Skip notification
|
||
| lang/cs.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/fr.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_doc_categories: Catégories des documents
|
||
|
enumeration_activities: Activités (suivi du temps)
|
||
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_skip_notify: Skip notification
|
||
| lang/es.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/nl.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Onmogelijk om deze versie te verwijderen.
|
||
|
label_renamed: hernoemt
|
||
|
label_copied: gekopieerd
|
||
|
label_skip_notify: Skip notification
|
||
| lang/ko.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/zh-tw.yml (リビジョン 31) | ||
|---|---|---|
|
enumeration_issue_priorities: 項目優先權
|
||
|
enumeration_doc_categories: 文件分類
|
||
|
enumeration_activities: 活動 (時間追蹤)
|
||
|
label_skip_notify: Skip notification
|
||
| lang/pl.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/th.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||
| lang/it.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Impossibile cancellare la versione
|
||
|
label_renamed: rinominato
|
||
|
label_copied: copiato
|
||
|
label_skip_notify: Skip notification
|
||
| lang/hu.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: A verziót nem lehet törölni
|
||
|
label_renamed: átnevezve
|
||
|
label_copied: lemásolva
|
||
|
label_skip_notify: Skip notification
|
||
| lang/no.yml (リビジョン 31) | ||
|---|---|---|
|
notice_unable_delete_version: Unable to delete version
|
||
|
label_renamed: renamed
|
||
|
label_copied: copied
|
||
|
label_skip_notify: Skip notification
|
||