You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev-env-setup.md
+1
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,7 @@ After certain kinds of changes are made, you need to build the project before se
198
198
199
199
* CSS: a build will run cssnext, combine custom media queries, and concat all source files into webcompat.dev.css. You'll need to re-build the CSS to see any changes, so it's recommended to use a watch task (see `npm run watch`).
200
200
* JS: a build will run eslint, minify and concat source files.
201
+
* JS templates (.jst files): if you are making changes to a Backbone template in a `.jst` file, you will need to re-run the `build` command to update the pre-compiled `templates.js` file before you will see the results.
201
202
* HTML templates: the changes should be served from disk without the need for rebuilding
202
203
* Python: the Flask local server will detect changes and restart automatically. No need to re-build.
Copy file name to clipboardExpand all lines: webcompat/static/js/lib/flash-message.js
+1-10
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,7 @@ var FlashMessageView = Backbone.View.extend({
44
44
this.render(message);
45
45
},
46
46
showThanks: function(opts){
47
-
varbuildTemplate=_.template(
48
-
[
49
-
"<h4>Thanks for reporting an issue!</h4>",
50
-
"<p>You're helping us make the web a better place to work and play.</p>",
51
-
"<p>Tell your friends about the bug you just filed:</p>",
52
-
'<a class="wc-Button wc-Button--action" href="https://twitter.com/intent/tweet?text=<%- encodeURIComponent("I just filed a bug on the internet:") %>&url=<%- encodeURIComponent("https://webcompat.com/issues/") %><%= number %>&via=webcompat" target="_blank">Share on Twitter</a>',
53
-
'<a class="wc-Button wc-Button--action" href="https://facebook.com/sharer/sharer.php?u=<%- encodeURIComponent("https://webcompat.com/issues/") %><%= number %>" target="_blank">Share on Facebook</a>'
0 commit comments