aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-02-15 13:55:02 +0100
committerGravatar Tom Willemse2014-02-15 13:55:02 +0100
commit66bc2bec98a5ee55a26b3330a67377b920c2dc26 (patch)
tree2495c3e04a48b7b53a5062c1a8b4178257a624e9
parent76a4cbd0ccde3c2f2993a59ddf1551283e1b88b6 (diff)
downloadavandu-66bc2bec98a5ee55a26b3330a67377b920c2dc26.tar.gz
avandu-66bc2bec98a5ee55a26b3330a67377b920c2dc26.zip
Show button in article to browse original
Not all articles are fully available through the RSS feed, and not all of them provide a link to the full article.
-rw-r--r--avandu.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/avandu.el b/avandu.el
index 0749ca6..506fa47 100644
--- a/avandu.el
+++ b/avandu.el
@@ -769,6 +769,13 @@ meaningless, but it's easy."
(insert
(propertize (concat "by: " (avu-prop item author))
'face 'avandu-article-author))
+ (insert " (")
+ (insert-button
+ "Browse original"
+ 'url (avu-prop item link)
+ 'action #'(lambda (button)
+ (browse-url (button-get button 'url))))
+ (insert ")")
(newline)(newline)
(setq content-start (point))
(insert (avu-prop item content))