Skip to content

Commit

Permalink
Fix markdown default in translation doc. limit the visbility of the s…
Browse files Browse the repository at this point in the history
…ettings link on new posts
  • Loading branch information
tristen committed Jul 17, 2013
1 parent cb8bffb commit a8b988e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/views/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ module.exports = Backbone.View.extend({
// class name if this post contains it
if (this.model.get('metadata') || this.model.get('defaults')) {
this.renderMetadata();
this.nav.mode('file meta');
this.nav.mode('file settings meta');
} else if (!this.model.isNew()) {
this.nav.mode('file settings');
}

this.updateDocumentTitle();
Expand Down Expand Up @@ -920,7 +922,7 @@ module.exports = Backbone.View.extend({
success: (function(model, res, options) {
this.sidebar.close();
this.updateSaveState(t('actions.save.saved'), 'saved');

// Unset dirty, return to edit view
this.dirty = false;
this.edit();
Expand Down
7 changes: 5 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,14 @@ ins {
/* In a file view */
#navigation.file .file { display:block; }

/* Visibility of metadata toggle
* on file pages */
/* Visibility of metadata & settings
* nav item on file pages */
.file .meta { display:none; }
.file.meta .meta { display:block; }

.file .settings { display:none; }
.file.settings .settings { display:block; }

.nav {
margin:15px 0 0;
padding-bottom:5px;
Expand Down
2 changes: 1 addition & 1 deletion translations/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ en:
edit: "Edit"
new:
body: |
## A New Post\n\nEnter text in [Markdown](http://daringfireball.net/projects/markdown/). Use the toolbar above, or click the **?** button for formatting help.
## A New Post\nEnter text in [Markdown](http://daringfireball.net/projects/markdown/). Use the toolbar above, or click the **?** button for formatting help.
file:
metaTitle: "Review your changes:"
rawMeta: "Raw Metadata"
Expand Down

0 comments on commit a8b988e

Please sign in to comment.