librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1736] add 'view source' function


From: Matt Lee
Subject: [Librefm-commits] [1736] add 'view source' function
Date: Fri, 22 May 2009 16:20:38 +0000

Revision: 1736
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1736
Author:   mattl
Date:     2009-05-22 16:20:36 +0000 (Fri, 22 May 2009)
Log Message:
-----------
add 'view source' function

Modified Paths:
--------------
    branches/stable/nixtape/templating.php
    branches/stable/nixtape/themes/librefm/templates/footer.tpl

Modified: branches/stable/nixtape/templating.php
===================================================================
--- branches/stable/nixtape/templating.php      2009-05-21 15:55:10 UTC (rev 
1735)
+++ branches/stable/nixtape/templating.php      2009-05-22 16:20:36 UTC (rev 
1736)
@@ -58,6 +58,7 @@
 $smarty->assign('lang_selector_array', array(($current_lang) => 1));
 $smarty->assign('base_url', $base_url);
 $smarty->assign('this_page', $_SERVER['REQUEST_URI']);
+$smarty->assign('this_page_for_sure', $_SERVER['SCRIPT_NAME']); // handles 
/index.php not /
 $smarty->assign('this_page_absolute',
         (empty($_SERVER['HTTPS']) ? 'http://' : 'http://')
        .(empty($_SERVER['HOST']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HOST'])

Modified: branches/stable/nixtape/themes/librefm/templates/footer.tpl
===================================================================
--- branches/stable/nixtape/themes/librefm/templates/footer.tpl 2009-05-21 
15:55:10 UTC (rev 1735)
+++ branches/stable/nixtape/themes/librefm/templates/footer.tpl 2009-05-22 
16:20:36 UTC (rev 1736)
@@ -39,6 +39,10 @@
        </div>
    <div id="ft" role="navigation">
 
+     <form 
action="http://svn.savannah.gnu.org/viewvc/*checkout*/branches/stable/nixtape/{this_page_for_sure}?root=librefm&content-type=text%2Fplain";>
+     <input type="submit" value="View source" />
+     </form>
+
      <ul>
        <li class="copy">&copy; 2009 FooCorp</li>
        <li><a href="http://libre.fm/contributors/";>Contributors</a></li>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]