Add "Last updated" footer to front page body text, using the modified Property
authorTodd Larsen <tlarsen@google.com>
Tue, 30 Sep 2008 17:03:51 +0000
changeset 217 7e121e6ba0dd
parent 216 aac174b902b3
child 218 ccdfc943a827
Add "Last updated" footer to front page body text, using the modified Property from the Work entity.
app/soc/content/css/soc.css
app/soc/templates/soc/site/home/public.html
--- a/app/soc/content/css/soc.css	Tue Sep 30 16:53:30 2008 +0000
+++ b/app/soc/content/css/soc.css	Tue Sep 30 17:03:51 2008 +0000
@@ -23,7 +23,7 @@
   color: black;
 
   font-family: Arial, sans-serif;
-  font-size: small;
+  font-size: medium;
 
   margin: 8px;
   margin-top: 3px;
@@ -261,6 +261,11 @@
     padding-top: 20px;
   }
 
+#lastmodified {
+  text-align: right;
+  font-size: small;
+}
+
 /* SIDEBAR MENU */
 #side {
   width: 200px;
--- a/app/soc/templates/soc/site/home/public.html	Tue Sep 30 16:53:30 2008 +0000
+++ b/app/soc/templates/soc/site/home/public.html	Tue Sep 30 17:03:51 2008 +0000
@@ -48,14 +48,15 @@
 {% endblock %}
 
 {% block body %}
-    {% if site_document %}
-    {{ site_document.content|safe }}
-    {% else %}
+ {% if site_document %}
+  {{ site_document.content|safe }}
+  <div id="lastmodified">Last updated on: {{ site_document.modified }}</div>
+ {% else %}
 This is the default site home page that can be configured via the <a href="/site/home/edit">Site Settings</a> interface.  
 The <a href="/site/home/edit">Site Settings</a> interface also provides a mechanism to select a feed to be displayed here.
 You need to sign in as site Developer in order to change <a href="/site/home/edit">Site Settings</a>.
-    {% endif %}
-    {% if site_settings.feed_url %}
+ {% endif %}
+ {% if site_settings.feed_url %}
     <div id="blog"></div>
-    {% endif %}
+ {% endif %}
 {% endblock %}
\ No newline at end of file