summaryrefslogtreecommitdiff
path: root/amber/layouts/_sidebar.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'amber/layouts/_sidebar.html.haml')
-rw-r--r--amber/layouts/_sidebar.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/amber/layouts/_sidebar.html.haml b/amber/layouts/_sidebar.html.haml
new file mode 100644
index 0000000..f911131
--- /dev/null
+++ b/amber/layouts/_sidebar.html.haml
@@ -0,0 +1,10 @@
+#navigation
+ %ul.nav.nav-pills.nav-stacked
+ - navigation_items do |item|
+ %li{:class => "#{item[:active]} level#{item[:level]}"}
+ %a{:href => item[:href], :class => ''}= item[:label]
+
+.sidebar-addendum
+ .locale-links
+ - available_languages.each do |name, code, url|
+ %a.label{:href => url, :class => (I18n.locale == code ? 'label-primary' : '')}= name \ No newline at end of file