Project

General

Profile

Feature #3058 » show-notes-only.diff

patch - Go MAEDA, 2015-09-23 09:09

View differences:

app/views/issues/show.html.erb (working copy)
<% if @journals.present? %>
<div id="history">
<div id="history-header">
<h3><%=l(:label_history)%></h3>
<% if @journals.detect {|j| ! j.details.empty?} %>
<%= check_box_tag 'show_notes_only', 1, false, {onclick: "toggleJournalDetails(this)"} %><%= label_tag 'show_notes_only', l(:label_show_notes_only) %>
<% end %>
</div>
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
</div>
<% end %>
config/locales/en.yml (working copy)
label_fields_mapping: Fields mapping
label_file_content_preview: File content preview
label_create_missing_values: Create missing values
label_show_notes_only: Show notes only
button_login: Login
button_submit: Submit
public/javascripts/application.js (working copy)
toggleDisabledInit();
});
function toggleJournalDetails(el) {
var checked = $(el).is(':checked');
details = $('.journal:not(.has-notes), .journal .details');
if (checked) {
details.hide();
} else {
details.show();
}
}
$(document).ready(setupAjaxIndicator);
$(document).ready(hideOnLoad);
$(document).ready(addFormObserversForDoubleSubmit);
public/stylesheets/application.css (working copy)
div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; }
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
div#history-header { margin: 8px 0 15px; }
div#history-header h3 { display: inline; }
.journal ul.details img {margin:0 0 -3px 4px;}
div.journal {overflow:auto;}
div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
(3-3/28)