mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding Email This Story button to sideoptions.
This commit is contained in:
parent
ba8d1b4f2a
commit
a448ffb735
4 changed files with 15 additions and 2 deletions
|
@ -3795,13 +3795,17 @@ body {
|
|||
background-image: url("/media/embed/icons/circular/train.png");
|
||||
background-size: 16px;
|
||||
}
|
||||
.NB-sideoption.NB-feed-story-email .NB-sideoption-icon {
|
||||
background-image: url("/media/embed/icons/circular/email.png");
|
||||
background-size: 16px;
|
||||
}
|
||||
.NB-sideoption.NB-feed-story-share .NB-sideoption-icon {
|
||||
background-image: url('/media/embed/icons/circular/share.png');
|
||||
background-size: 16px;
|
||||
}
|
||||
|
||||
.NB-sideoption .NB-sideoption-title {
|
||||
padding: 9px 24px 8px 8px;
|
||||
padding: 9px 30px 8px 8px;
|
||||
color: white;
|
||||
text-shadow: none;
|
||||
height: 32px;
|
||||
|
|
BIN
media/img/icons/circular/email.png
Normal file
BIN
media/img/icons/circular/email.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -235,7 +235,7 @@
|
|||
narrow = true;
|
||||
}
|
||||
$windows.toggleClass('NB-narrow-content', narrow);
|
||||
var extranarrow = center_width < 580;
|
||||
var extranarrow = center_width < 666;
|
||||
$windows.toggleClass('NB-extra-narrow-content', extranarrow);
|
||||
var wide = center_width > 860;
|
||||
$windows.toggleClass('NB-wide-content', wide);
|
||||
|
|
|
@ -23,6 +23,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
"click .NB-feed-story-tag" : "save_classifier",
|
||||
"click .NB-feed-story-author" : "save_classifier",
|
||||
"click .NB-feed-story-train" : "open_story_trainer",
|
||||
"click .NB-feed-story-email" : "open_email",
|
||||
"click .NB-feed-story-save" : "toggle_starred",
|
||||
"click .NB-story-comments-label" : "scroll_to_comments",
|
||||
"click .NB-story-content-expander" : "expand_story"
|
||||
|
@ -241,6 +242,10 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
</div>\
|
||||
<div class="NB-feed-story-comments-container"></div>\
|
||||
<div class="NB-feed-story-sideoptions-container">\
|
||||
<div class="NB-sideoption NB-feed-story-email">\
|
||||
<div class="NB-sideoption-icon"> </div>\
|
||||
<div class="NB-sideoption-title">Email <span>this story</span></div>\
|
||||
</div>\
|
||||
<div class="NB-sideoption NB-feed-story-train">\
|
||||
<div class="NB-sideoption-icon"> </div>\
|
||||
<div class="NB-sideoption-title">Train <span>this story</span></div>\
|
||||
|
@ -771,6 +776,10 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
NEWSBLUR.reader.open_story_trainer(this.model.id, feed_id, options);
|
||||
},
|
||||
|
||||
open_email: function() {
|
||||
NEWSBLUR.reader.send_story_to_email(this.model);
|
||||
},
|
||||
|
||||
toggle_starred: function() {
|
||||
this.model.toggle_starred();
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue