]> gitweb.fperrin.net Git - djsite.git/commitdiff
Add a perma-link
authorFrédéric Perrin <fred@fperrin.net>
Wed, 28 Sep 2016 21:03:34 +0000 (22:03 +0100)
committerFrédéric Perrin <fred@fperrin.net>
Wed, 28 Sep 2016 21:03:34 +0000 (22:03 +0100)
quotes/static/quotes/style.css
quotes/templates/quotes/display.html

index 007cfe18af12eaf92e143b26351cf4f9b20e9a6e..db5467189a4638c85f27d2bd39d3d02042871301 100644 (file)
@@ -2,6 +2,10 @@ a {
     color: black;
 }
 
+a:hover {
+    text-decoration: none;
+}
+
 .quote {
     background-color: #ffbd33;
     border: 3px solid #ff5733;
@@ -16,3 +20,8 @@ a {
 .quote .author .name {
     font-style: italic;
 }
+
+.permalink {
+    font-size: 0.8em;
+    text-align: right;
+}
index 108dc92ba6a3662d01f02c57530d97be5898e971..7873c81aadf98e6ef18e95f8f9652ca6797d2522 100644 (file)
 
   {% if quote.tags.all %}
     <p class="tags">
-      Tags: 
+      Tags:
       {% for tag in quote.tags.all %}
         <a href="{% url 'quotes:tags' tag.id %}">{{ tag.tag }}</a>
       {% endfor %}
     </p>
   {% endif %}
+
+  <p class="permalink">
+    <a href="{% url 'quotes:onequote' quote.id %}">Permalink</a>
+  </p>
 </div>