[Xfce4-commits] <archive:master> Add pointer to /src/xfce when browsing /xfce.

Nick Schermer noreply at xfce.org
Sun Jan 15 11:02:01 CET 2012


Updating branch refs/heads/master
         to a2e818ab3b2fd3e17391dc12b8876c85c59850c4 (commit)
       from 96f74145b5366fa7cd8af736b235f08a7e410f89 (commit)

commit a2e818ab3b2fd3e17391dc12b8876c85c59850c4
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jan 15 11:00:15 2012 +0100

    Add pointer to /src/xfce when browsing /xfce.

 fancyindex/main.rb           |    3 ++-
 fancyindex/views/layout.haml |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fancyindex/main.rb b/fancyindex/main.rb
index 65eec25..1160b1f 100644
--- a/fancyindex/main.rb
+++ b/fancyindex/main.rb
@@ -39,8 +39,9 @@ module Fancyindex
         @dir.each {|c, o| @dir[c] = 'D' if col == c and order == o}
 
         @archive = Archive.new(path, requesturi, col, order == 'D')
-
         @title = "Index of #{@archive.href if @archive}"
+        @notice = 'Invidivial, and often more up-to-date, releases of the Xfce core packages can be found in <a href="/src/xfce">/src/xfce</a>!' if requesturi.match(/^xfce/)
+
         haml :index, :ugly => true
       end
     end
diff --git a/fancyindex/views/layout.haml b/fancyindex/views/layout.haml
index ad8b0f8..7ee9006 100644
--- a/fancyindex/views/layout.haml
+++ b/fancyindex/views/layout.haml
@@ -32,7 +32,8 @@
           %li
             %a{:href => 'http://git.xfce.org', :title => 'Project repositories'} GIT
       %div{:id => 'xfce-header-clear'}
-
+    - if @notice
+      %div{:class => 'notice'} #{@notice}
     %div{:id => 'mirrorbrain-wrap'}
       =yield
       %hr


More information about the Xfce4-commits mailing list