diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-04-26 03:12:46 +0100 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2018-04-27 11:49:26 -0400 |
commit | 0ea4e9880cabc61944c1a5fb88b5d2fbdea069ba (patch) | |
tree | 6c859c242a5e29005b430ca9c1ea3686bcb37cb6 | |
parent | da8be386a2305b52e46ef5c7ad630f3fad36cba0 (diff) |
add parabola navbar for cross-site consistency (issue #1345)
-rw-r--r-- | app/views/hooks/parabola/_view_layouts_base_body_top.html.erb | 13 | ||||
-rw-r--r-- | app/views/hooks/parabola/_view_layouts_base_html_head.html.erb | 1 | ||||
-rw-r--r-- | app/views/hooks/parabola/_view_welcome_index_left.html.erb (renamed from app/views/hooks/welcome/_view_welcome_index_left.html.erb) | 0 | ||||
-rw-r--r-- | lib/parabola/hooks.rb | 8 | ||||
-rw-r--r-- | lib/plugins/parabola/init.rb | 9 | ||||
-rw-r--r-- | lib/plugins/welcome/init.rb | 9 | ||||
-rw-r--r-- | lib/welcome/hooks.rb | 7 | ||||
l--------- | public/themes/parabola/stylesheets/archlogo.png | 1 | ||||
l--------- | public/themes/parabola/stylesheets/archnavbar.css | 1 |
9 files changed, 33 insertions, 16 deletions
diff --git a/app/views/hooks/parabola/_view_layouts_base_body_top.html.erb b/app/views/hooks/parabola/_view_layouts_base_body_top.html.erb new file mode 100644 index 000000000..c24512401 --- /dev/null +++ b/app/views/hooks/parabola/_view_layouts_base_body_top.html.erb @@ -0,0 +1,13 @@ +<div id="archnavbar"><!-- Arch Linux global navigation bar --> + <div id="archnavbarlogo"><h1><a href="https://www.parabola.nu/">Parabola GNU/Linux-libre</a></h1></div> + <div id="archnavbarmenu"> + <ul id="archnavbarlist"> + <li id="anb-home"><a href="https://www.parabola.nu/" title="Parabola news, packages, projects and more">Home</a></li> + <li id="anb-packages"><a href="https://www.parabola.nu/packages/" title="Package Database">Packages</a></li> + <li id="anb-wiki"><a href="https://wiki.parabola.nu/" title="Community documentation">Wiki</a></li> + <li id="anb-bugs" class="anb-selected"><a href="https://labs.parabola.nu" title="Issue Tracker">Issues</a></li> + <li id="anb-projects"><a href="https://projects.parabola.nu/" title="Our Code">Projects</a></li> + <li id="anb-download"><a href="https://wiki.parabola.nu/Get_Parabola" title="Get Parabola">Download</a></li> + </ul> + </div> +</div><!-- #archnavbar --> diff --git a/app/views/hooks/parabola/_view_layouts_base_html_head.html.erb b/app/views/hooks/parabola/_view_layouts_base_html_head.html.erb new file mode 100644 index 000000000..4a00c0a06 --- /dev/null +++ b/app/views/hooks/parabola/_view_layouts_base_html_head.html.erb @@ -0,0 +1 @@ +<link rel="stylesheet" href="https://labs.parabola.nu/themes/parabola/stylesheets/archnavbar.css" /> diff --git a/app/views/hooks/welcome/_view_welcome_index_left.html.erb b/app/views/hooks/parabola/_view_welcome_index_left.html.erb index 9fb021357..9fb021357 100644 --- a/app/views/hooks/welcome/_view_welcome_index_left.html.erb +++ b/app/views/hooks/parabola/_view_welcome_index_left.html.erb diff --git a/lib/parabola/hooks.rb b/lib/parabola/hooks.rb new file mode 100644 index 000000000..1d60dc635 --- /dev/null +++ b/lib/parabola/hooks.rb @@ -0,0 +1,8 @@ +module Parabola + HOOKS = [ :view_layouts_base_html_head , :view_layouts_base_body_top , + :view_welcome_index_left ] + + class Hooks < Redmine::Hook::ViewListener + HOOKS.each { | hook |render_on hook , :partial => "hooks/parabola/#{hook}" } + end +end diff --git a/lib/plugins/parabola/init.rb b/lib/plugins/parabola/init.rb new file mode 100644 index 000000000..46240c79d --- /dev/null +++ b/lib/plugins/parabola/init.rb @@ -0,0 +1,9 @@ +require 'redmine' +require_dependency 'parabola/hooks' + +Redmine::Plugin.register :parabola do + name 'Parabola' + author 'Parabola' + description 'Parabola navbar and content for home page' + version '0.0.1' +end diff --git a/lib/plugins/welcome/init.rb b/lib/plugins/welcome/init.rb deleted file mode 100644 index b61a87177..000000000 --- a/lib/plugins/welcome/init.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'redmine' -require_dependency 'welcome/hooks' - -Redmine::Plugin.register :welcome do - name 'Welcome' - author 'Parabola' - description 'Parabola content for home page' - version '0.0.1' -end diff --git a/lib/welcome/hooks.rb b/lib/welcome/hooks.rb deleted file mode 100644 index cf08b2bf7..000000000 --- a/lib/welcome/hooks.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Welcome - HOOKS = [ :view_welcome_index_left ] - - class Hooks < Redmine::Hook::ViewListener - HOOKS.each { | hook |render_on hook , :partial => "hooks/welcome/#{hook}" } - end -end diff --git a/public/themes/parabola/stylesheets/archlogo.png b/public/themes/parabola/stylesheets/archlogo.png new file mode 120000 index 000000000..bf36635e4 --- /dev/null +++ b/public/themes/parabola/stylesheets/archlogo.png @@ -0,0 +1 @@ +/srv/http/www.parabola.nu/web/sitestatic/archnavbar/archlogo.png
\ No newline at end of file diff --git a/public/themes/parabola/stylesheets/archnavbar.css b/public/themes/parabola/stylesheets/archnavbar.css new file mode 120000 index 000000000..03762c336 --- /dev/null +++ b/public/themes/parabola/stylesheets/archnavbar.css @@ -0,0 +1 @@ +/srv/http/www.parabola.nu/web/sitestatic/archnavbar/archnavbar.css
\ No newline at end of file |