From 36e7c37dd81ccc48c1b8abc495a3de6bf18e3825 Mon Sep 17 00:00:00 2001 From: Mason James Date: Sat, 5 Nov 2011 23:28:48 +1300 Subject: [PATCH] [SIGNED-OFF] Bug 7164 - add Koha history timeline tab to 'About' page Content-Type: text/plain; charset="utf-8" Includes follow up by Chris Cormack fixing formatting in docs/history.txt [MINOR EDIT] Added html filter to output for validity's sake Signed-off-by: Owen Leonard --- about.pl | 41 ++++++++++++++++++++ docs/history.txt | 6 +- koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 45 +++++++++++++++++----- 3 files changed, 79 insertions(+), 13 deletions(-) diff --git a/about.pl b/about.pl index 596637d..249f245 100755 --- a/about.pl +++ b/about.pl @@ -33,6 +33,8 @@ use C4::Auth; use C4::Context; use C4::Installer; +#use Smart::Comments '####'; + my $query = new CGI; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { @@ -106,7 +108,46 @@ foreach (@components) { $row = []; } } +## ## $table $template->param( table => $table ); + +## ------------------------------------------ +## Koha time line code + +#get file location +my $dir = C4::Context->config('intranetdir'); +open( FILE, "$dir" . "/docs/history.txt" ); +my $i = 0; + +my @rows2 = (); +my $row2 = []; + +my @lines = ; +close(FILE); + +shift @lines; #remove header row + +foreach (@lines) { + my ( $date, $desc, $tag ) = split(/\t/); + push( + @rows2, + { + date => $date, + desc => $desc, + } + ); +} + +my $table2 = []; +#foreach my $row2 (@rows2) { +foreach (@rows2) { + push (@$row2, $_); + push( @$table2, { row2 => $row2 } ); + $row2 = []; +} + +$template->param( table2 => $table2 ); + output_html_with_http_headers $query, $cookie, $template->output; diff --git a/docs/history.txt b/docs/history.txt index c6a34cd..32963e9 100644 --- a/docs/history.txt +++ b/docs/history.txt @@ -579,7 +579,7 @@ September 27 2011 Koha 3.4.5 released September 28 2011 Thatcher Rea becomes the 158th developer to have a patch pushed October 5 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_5_October_2011 October 15 2011 Greg Barniskis becomes the 159th developer to have a patch pushed -October 22 2011 Koha 3.6.0 released -October 31 2011 4th KohaCon in Mumbaï, India -November 9 2011 Koha 3.4.6 released +October 22 2011 Koha 3.6.0 released +October 31 2011 4th KohaCon in Mumbaï, India +November 9 2011 Koha 3.4.6 released diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 784f463..5097116 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -16,12 +16,12 @@
- +

About Koha

- +
- +
- + @@ -95,8 +96,8 @@
  • The Near East University, Cyprus
  • OPUS International Consultants, Wellington, New Zealand (Corporate Serials sponsorship)
  • famfamfam.com Birmingham (UK) based developer Mark James for the famfamfam Silk iconset.
  • - - + +

    Koha Release Team

    • Colin Campbell(Koha 3.4 QA Manager)
    • @@ -286,7 +287,7 @@
    • Katipo Communications, New Zealand
    • KohaAloha, New Zealand
    • LibLime, USA
    • -
    • Libriotech, Norway
    • +
    • Libriotech, Norway
    • Nelsonville Public Library, Ohio, USA
    • PTFS, Maryland, USA
    • PTFS Europe Ltd, United Kingdom
    • @@ -296,7 +297,7 @@
    • Tamil, France
    • Xercode, Spain
    - +

    Additional Thanks To...

    • Jo Ransom
    • @@ -307,6 +308,7 @@
    • Nicolas Morin (French Translation in 2.0)
    +

    Koha

    @@ -315,7 +317,7 @@

    YUI

    BSD License -

    +

    Famfamfam iconset

    • FamFamFam Site
    • @@ -329,6 +331,7 @@ by the Bridge Consortium of Carleton College and St. Olaf College.
    +

    Translation

      @@ -380,8 +383,30 @@
    • اردو(Urdu) Ata ur Rehman
    • Українська (Ukrainian) Victor Titarchuk and Serhij Dubyk
    - + +
    + +
    +

    Koha history timeline

    +
    Server information
    Koha version: [% kohaVersion |html %]
    + + + + + + + [% FOREACH tabl IN table2 %] + + [% FOREACH ro IN tabl.row2 %] + + + [% END %] + + [% END %] +
    DateDescription
    [% ro.date %][% ro.desc|html %]
    +
    +
    [% INCLUDE 'intranet-bottom.inc' %] -- 1.7.3