Commits

Gregory Petukhov committed a7988fe

Fix templates. Add AddThis buttons

Comments (0)

Files changed (5)

feedzilla/static/feedzilla/css/style.css

     margin-top: 1em;
 }
 
-.post .details li {
-    display: inline;
-    font-size: 0.8em;
-    margin-right: 1em;
-}
+    .post .details li.share {
+        margin-bottom: 1em;
+    }
 
-.post .details .tags a {
-    margin-right: 0.5em;
-}
+    .post .details li {
+        display: inline;
+        font-size: 0.8em;
+        margin-right: 1em;
+    }
+
+    .post .details .tags a {
+        margin-right: 0.5em;
+    }
 
 .site-footer {
     margin-top: 2em;

feedzilla/templates/feedzilla/_post_template.html

     </div>
     <div class="details">
         <ul>
+            <li class="share">
+                <!-- AddThis Button BEGIN -->
+                <div class="addthis_toolbox addthis_default_style" addthis:url="{{ post.get_absolute_url }}" addthis:title="{{ post }}">
+                    <a class="addthis_button_preferred_1"></a>
+                    <a class="addthis_button_preferred_2"></a>
+                    <a class="addthis_button_preferred_3"></a>
+                    <a class="addthis_button_preferred_4"></a>
+                    <a class="addthis_button_compact"></a>
+                </div>
+                <!-- AddThis Button END -->
+            </li>
             <li><span title="{% trans "Date of publication" %}">{{ post.created|date:"d M H:i" }}</span></li>
             {% if post.tags %}<li><span class="tags" title="{% trans "Labels of post" %}">
                 {% tags_for_object post as tags %}

feedzilla/templates/feedzilla/_sidebar_extra.html

Empty file added.

feedzilla/templates/feedzilla/submit_blog.html

 <p>{% trans "Thank you. Your application has been accepted and will be reviewed by admin in the near time." %}</p>
 {% else %}
 <form method="post" class="common-form">
+    {% csrf_token %}
     {{ form.as_p }}
     <p><input type="submit" value="{% trans "Submit" %}" /></p>
 </form>

feedzilla/templates/footer.html

 {% load i18n %}
+<script type="text/javascript">
+    var addthis_config = {};
+</script>
+<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
 
 <div class="left">
     {% trans "Powered by" %} <a href="http://bitbucket.org/lorien/feedzilla">Feedzilla</a> <br/>