[open-ils-commits] r155 - servres/trunk/conifer/templates (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 8 22:05:19 EDT 2009


Author: gfawcett
Date: 2009-03-08 22:05:18 -0400 (Sun, 08 Mar 2009)
New Revision: 155

Modified:
   servres/trunk/conifer/templates/welcome.xhtml
Log:
a slightly better default welcome-page design.


Modified: servres/trunk/conifer/templates/welcome.xhtml
===================================================================
--- servres/trunk/conifer/templates/welcome.xhtml	2009-03-08 20:25:24 UTC (rev 154)
+++ servres/trunk/conifer/templates/welcome.xhtml	2009-03-09 02:05:18 UTC (rev 155)
@@ -1,5 +1,6 @@
 <?python
 title = _('Welcome!')
+news_items = models.NewsItem.objects.all().order_by('-published','-id')[0:5]
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
@@ -9,13 +10,13 @@
   <title>${title}</title>
 </head>
 <body>
-  <!-- !opting *not* to put a heading on the welcome page, so that the News items can be used to customize it. -->
-  <h1 style="visibility: hidden;">Welcome!</h1>
-  <div class="newsitem" py:for="news in models.NewsItem.objects.all().order_by('-published','-id')[0:5]">
+  <p>Welcome! Please use the links above to browse the reserves, or to join and visit your course sites.</p>
+  <div class="newsitem" py:for="news in news_items">
     <h2>${news.subject}</h2>
     <div>${news.generated_body()}</div>
     <div class="newsdate">posted ${news.published.strftime('%c')}
     <span py:if="user.has_perm('change_newsitem')">&bull; <a href="admin/news/${news.id}/">edit</a></span></div>
   </div>
+  <p py:if="user.has_perm('add_newsitem')"><a href="admin/news/0/">Add a news item</a></p>
 </body>
 </html>



More information about the open-ils-commits mailing list