Skip to content

Commit

Permalink
Merge pull request mozilla#2825 from MikkCZ/bug-1260817
Browse files Browse the repository at this point in the history
[Bug 1260817] Show Save as draft button also under translated article content preview
  • Loading branch information
Mike Cooper committed Mar 30, 2016
2 parents 230921c + fb783ae commit 2b91358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kitsune/wiki/jinja2/wiki/translate.html
Expand Up @@ -208,7 +208,7 @@ <h3>{{ _('{locale} translation:')|f(locale=language) }}</h3>
<div class="output"></div>
</div>
<div class="submit" id="preview-bottom">
{{ submit_revision(revision_form, buttons_only=True, include_diff=True) }}
{{ submit_revision(revision_form, buttons_only=True, include_diff=True, translate=True) }}
</div>
<div id="draft-message" class="alert" hidden>
</div>
Expand Down
2 changes: 1 addition & 1 deletion kitsune/wiki/tests/test_templates.py
Expand Up @@ -1056,7 +1056,7 @@ def test_draft_button(self):
eq_(200, trans_resp.status_code)
trans_content = pq(trans_resp.content)
eq_(0, len(trans_content('.user-messages li')))
eq_(1, len(trans_content('.submit .btn-draft')))
eq_(2, len(trans_content('.submit .btn-draft')))

def test_restore_draft_revision(self):
draft = DraftRevisionFactory(creator=self.user)
Expand Down

0 comments on commit 2b91358

Please sign in to comment.