Skip to content

Commit

Permalink
Merge pull request #171 from GSA/edit-workflow
Browse files Browse the repository at this point in the history
Change Branch in Edit button on pages
  • Loading branch information
Jeremy Zilar authored Nov 6, 2017
2 parents 282083a + b417491 commit 48f046e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/digital.gov/static/js/all-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jQuery(document).ready(function($) {
"<p><strong>alt:</strong> "+alt+"</p>",
"<p><strong>shortcode:</strong></p>",
"<pre>{{< img src=\""+uid+"\" capton=\"\" alt=\"\" >}}</pre>", // shortcode
"<p><a target='_new' href='https://github.com/GSA/digitalgov.gov/tree/demo/data/images/"+uid+".yml' title='view on GitHub'>Edit on GitHub »</a></p>",
"<p><a target='_new' href='https://github.com/GSA/digitalgov.gov/edit/master/data/images/"+uid+".yml' title='view on GitHub'>Edit on GitHub »</a></p>",
"</div>",
"</div>"
].join("\n");
Expand Down
2 changes: 1 addition & 1 deletion themes/digital.gov/static/js/external.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function transform_edit_file_link(){
if ( $('.entry .edit_file').length ) {
var data = $('.edit_file'); // get the edit link data
var filepath = $(data).attr('data-filepath'); // the filename in GitHub
var github_file_path = 'https://github.com/GSA/digitalgov.gov/blob/demo/content/'+filepath;
var github_file_path = 'https://github.com/GSA/digitalgov.gov/edit/master/content/'+filepath;
$(data).attr('href', github_file_path);
}
}
Expand Down

0 comments on commit 48f046e

Please sign in to comment.