Feature #3058 » show-notes-only-2.diff
| app/views/issues/show.html.erb (working copy) | ||
|---|---|---|
| 120 | 120 | |
| 121 | 121 |
<% if @journals.present? %> |
| 122 | 122 |
<div id="history"> |
| 123 |
<div id="history-header"> |
|
| 123 | 124 |
<h3><%=l(:label_history)%></h3> |
| 125 |
<% if @journals.detect {|j| j.details.present?} %>
|
|
| 126 |
<%= check_box_tag 'show_notes_only', 1, false, {onclick: "toggleJournalDetails(this)"} %><%= label_tag 'show_notes_only', l(:label_show_notes_only) %>
|
|
| 127 |
<% end %> |
|
| 128 |
</div> |
|
| 124 | 129 |
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
|
| 125 | 130 |
</div> |
| 126 | 131 |
<% end %> |
| config/locales/en.yml (working copy) | ||
|---|---|---|
| 971 | 971 |
label_fields_mapping: Fields mapping |
| 972 | 972 |
label_file_content_preview: File content preview |
| 973 | 973 |
label_create_missing_values: Create missing values |
| 974 |
label_show_notes_only: Show notes only |
|
| 974 | 975 | |
| 975 | 976 |
button_login: Login |
| 976 | 977 |
button_submit: Submit |
| public/javascripts/application.js (working copy) | ||
|---|---|---|
| 650 | 650 |
toggleDisabledInit(); |
| 651 | 651 |
}); |
| 652 | 652 | |
| 653 |
function toggleJournalDetails(el) {
|
|
| 654 |
var details = $('.journal:not(.has-notes), .journal>.details');
|
|
| 655 |
$(el).is(':checked') ? details.hide() : details.show();
|
|
| 656 |
} |
|
| 657 | ||
| 653 | 658 |
$(document).ready(setupAjaxIndicator); |
| 654 | 659 |
$(document).ready(hideOnLoad); |
| 655 | 660 |
$(document).ready(addFormObserversForDoubleSubmit); |
| public/stylesheets/application.css (working copy) | ||
|---|---|---|
| 375 | 375 |
div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; }
|
| 376 | 376 |
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
|
| 377 | 377 | |
| 378 |
div#history-header { margin: 8px 0 15px; }
|
|
| 379 |
div#history-header h3 { display: inline; }
|
|
| 380 | ||
| 378 | 381 |
.journal ul.details img {margin:0 0 -3px 4px;}
|
| 379 | 382 |
div.journal {overflow:auto;}
|
| 380 | 383 |
div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
|