Making Koha news display more blog-like, with add/edit/delete links if user has privi...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 22 Oct 2007 01:33:20 +0000 (20:33 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 22 Oct 2007 02:55:20 +0000 (21:55 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl

index 02933d0..6857219 100644 (file)
@@ -1,6 +1,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
 <title>Koha staff client</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<style type="text/css"> #koha-news { border: 1px solid #EEEEEE; margin: .2em;} #koha-news h3 {background-color: #EEEEEE; padding : .3em; margin: 0;} .newsitem {margin: .3em; border-bottom: 1px solid #EEE;} .newsitem:last-child {border-bottom : 0;} .newsfooter {font-size: 80%; color: #CCCCCC;} </style>
 </head>
 <body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
        <div class="yui-u first">
         <!-- TMPL_IF name="koha_news_count" -->
                <div id="koha-news">
-            News
-                       <!-- TMPL_VAR name="koha_news_count" --> recent news item(s)
+            <h3>News</h3>
+                       <!-- <!-- TMPL_VAR name="koha_news_count" --> recent news item(s) -->
             <!-- TMPL_LOOP name="koha_news" -->
-                     <!-- TMPL_VAR name="title" -->
-                                        on <!-- TMPL_VAR name="newdate" -->
-                    <!-- TMPL_VAR name="new" -->
+                    <div class="newsitem" id="news<!-- TMPL_VAR NAME="idnew" -->"><h4><!-- TMPL_VAR name="title" --></h4>
+                                        <p><!-- TMPL_VAR name="new" --></p>
+                                       <p class="newsfooter"> Posted on <!-- TMPL_VAR name="newdate" --> <!-- TMPL_IF NAME="CAN_user_tools" -->
+    <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a> | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=<!-- TMPL_VAR NAME="idnew" -->">Delete</a> | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a><!-- /TMPL_IF --></p></div>
             <!-- /TMPL_LOOP -->
                </div><!-- /koha-news -->
         <!-- /TMPL_IF -->
index 2569a73..f45896a 100644 (file)
@@ -8,7 +8,8 @@
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/tools-home.pl">Tools</a> &rsaquo; <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/tools/koha-news.pl">Koha News</a> &rsaquo; Add News Item<!-- TMPL_ELSE -->Koha News<!-- /TMPL_IF --></div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/tools-home.pl">Tools</a> &rsaquo; <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/tools/koha-news.pl">Koha News</a> &rsaquo; <!-- TMPL_IF NAME="id" -->
+Edit News Item<!-- TMPL_ELSE -->Add News Item<!-- /TMPL_IF --><!-- TMPL_ELSE -->Koha News<!-- /TMPL_IF --></div>
 
 <!-- TMPL_IF NAME="add_form" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
    <div id="bd">