Skip to content

Commit

Permalink
Merge pull request #5833 from Conan-Kudo/full-authors-in-changes
Browse files Browse the repository at this point in the history
webui: Use full author identities in generating changes entries
  • Loading branch information
ChrisBr committed Sep 11, 2018
2 parents dbaa3bd + b614307 commit 5d7f591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/api/app/assets/javascripts/webui/application/package.js
Expand Up @@ -56,7 +56,8 @@ function addChangesEntryTemplate() { // jshint ignore:line
templ = "-------------------------------------------------------------------\n" +
DAYS[date.getUTCDay()] + " " + MONTHS[date.getUTCMonth()] + " " + day + " " +
hours + ":" + minutes + ":" + seconds + " UTC " + date.getUTCFullYear() +
" - " + $("a.changes-link").data('email') + "\n\n" + "- \n" + "\n";
" - " + $("a.changes-link").data('packagername') +
" <" + $("a.changes-link").data('packageremail') + ">" +"\n\n" + "- \n" + "\n";

editors[0].setValue(templ + editors[0].getValue());
editors[0].focus();
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/views/webui/package/view_file.html.erb
Expand Up @@ -14,7 +14,7 @@
<% if @filename.ends_with?('.changes') %>
<p>
<%# Rather hacky attempt to provide 'osc vc'-like functionality, would benefit of proper 'snippet' support for editor: %>
<a href="#" class="changes-link" onclick="addChangesEntryTemplate(); return false;" data-email="<%= User.current.email %>">Insert changes entry template</a>
<a href="#" class="changes-link" onclick="addChangesEntryTemplate(); return false;" data-packagername="<%= User.current.realname %>" data-packageremail="<%= User.current.email %>">Insert changes entry template</a>
</p>
<% end %>
Expand Down

0 comments on commit 5d7f591

Please sign in to comment.