aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-02-13 21:01:04 -0800
committerAdam Mathes <adam@trenchant.org>2018-02-13 21:01:04 -0800
commitc30083ff11d4d206c564c8476a034b37aefad885 (patch)
tree2db71f613311ebde0cb5f9fa77072be2bc14ab4d
parentc55b94202858eac95358358d2add5cd46afa38b4 (diff)
downloadneko-c30083ff11d4d206c564c8476a034b37aefad885.tar.gz
neko-c30083ff11d4d206c564c8476a034b37aefad885.tar.bz2
neko-c30083ff11d4d206c564c8476a034b37aefad885.zip
change domain / url style
-rw-r--r--static/style.css4
-rw-r--r--static/ui.html2
-rw-r--r--static/ui.js4
3 files changed, 9 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css
index 8c44363..8a3e1a3 100644
--- a/static/style.css
+++ b/static/style.css
@@ -84,6 +84,10 @@ p.dateline {
color: #ccc;
}
+p.dateline a {
+ color: #ccc;
+}
+
.item {
padding: 1rem;
margin-top: 5rem;
diff --git a/static/ui.html b/static/ui.html
index 8918d82..24f36c1 100644
--- a/static/ui.html
+++ b/static/ui.html
@@ -38,7 +38,7 @@
<span class="full">{{if item.full}}▼{{else}}►{{/if}}</span>
</h2>
<p class="dateline" style="clear: both;">
- ${ item.publish_date } from <a href="${item.feed_url}">${item.feed_title}</a>
+ <a href="${item.feed_url}">${item.feed_title}</a> | <a href="${item.url}">${item.p_url}</a>
</p>
{{if item.header_image}}
<div class="img"><img src="${item.header_image}" /></div>
diff --git a/static/ui.js b/static/ui.js
index 4df0550..d76602e 100644
--- a/static/ui.js
+++ b/static/ui.js
@@ -177,6 +177,10 @@ var Item = Backbone.Model.extend({
url: '/item/',
initialize: function() {
+ var p_url = this.get('url');
+ p_url = p_url.replace('https://', '');
+ p_url = p_url.replace('http://', '');
+ this.set('p_url', p_url);
this.bind('change', this.maybeSave);
},