Skip to content

Commit

Permalink
Improve the way the subscribe links are generated
Browse files Browse the repository at this point in the history
- Be consistent with how we get the site's URL
- Don't display the RSS subscribe link if we don't have it defined
  • Loading branch information
Dan Fairs committed Jan 10, 2010
1 parent 7c11807 commit f94ad24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mingus/templates/blog/post_detail.html
Expand Up @@ -67,10 +67,12 @@ <h2>{{ object.title }}</h2>

<div class="subscribe clearfix">
<ul>
<li><a href="http://twitter.com/?status=reading: {{ object.title }} - {{ SITE_URL }}{{ object.get_absolute_url }}" target="_blank">{% trans "Twitter this" %}</a></li>
<li><a href="http://twitter.com/?status=reading: {{ object.title }} - http://{{ BLOG_SETTINGS.site.domain }}{{ object.get_absolute_url }}" target="_blank">{% trans "Twitter this" %}</a></li>
<li><a href="http://www.reddit.com/submit?title={{ object.title }}&url=http://{{ BLOG_SETTINGS.site.domain }}{{ object.get_absolute_url }}" target="_blank">{% trans "Reddit this" %}</a></li>
<li><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;">{% trans "Add to Delicious" %}</a></li>
{% if FEED_SUBSCRIBE_RSS %}
<li><a href="{{ FEED_SUBSCRIBE_RSS }}">{% trans "Subscribe RSS" %}</a></li>
{% endif %}
</ul>
</div>
<!-- post -->
Expand Down

0 comments on commit f94ad24

Please sign in to comment.