From c30083ff11d4d206c564c8476a034b37aefad885 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Tue, 13 Feb 2018 21:01:04 -0800 Subject: change domain / url style --- static/style.css | 4 ++++ static/ui.html | 2 +- static/ui.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'static') 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 @@ {{if item.full}}▼{{else}}►{{/if}}

- ${ item.publish_date } from ${item.feed_title} + ${item.feed_title} | ${item.p_url}

{{if item.header_image}}
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); }, -- cgit v1.2.3