Skip to content

Commit

Permalink
Merge pull request #175 from michaelgwood/master
Browse files Browse the repository at this point in the history
series: Make sure to pass the base_url to the status popover template
  • Loading branch information
dlespiau committed Apr 1, 2016
2 parents cb2d289 + 9a48dc5 commit 42e6a5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions htdocs/js/patchwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ var pw = (function() {
'initial': function() { return 'New'; },
'in progress': function(record) {
record.object_name = patch_name;
record.link = ctx.base_url + '/series/' + record.id + '/';

var list = Mustache.render(tmpl_series_info_list, record);

return 'In progress ' + Mustache.render(tmpl_series_info, {
Expand Down
2 changes: 1 addition & 1 deletion patchwork/templates/patchwork/series-list-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li>{{count}} {{object_name}} in state <strong>{{name}}</strong></li>
{{/state_summary}}
</ul>
<a href='/series/{{id}}/'>View patches</a>
<a href='{{link}}'>View patches</a>
</script>
<script id="series-info-tmpl" type="x-tmpl-mustache">
<span role="button" title="" data-original-title="<strong>{{title}}</strong>"
Expand Down

0 comments on commit 42e6a5b

Please sign in to comment.