lib/wally/views/layout.haml in wally-0.0.16 vs lib/wally/views/layout.haml in wally-0.0.17
- old
+ new
@@ -15,18 +15,23 @@
%form{:method => "GET", :action => "/search", :id => "search"}
%input{:type => "text", :id => "q", :name => "q", :placeholder => 'text, @tags etc.', :value => @q }
%input.btn{:type => "submit", :id => "search", :value => "Search"}
%div.container-fluid
%div.sidebar
- - if @tag_count.any?
- %h2 Tags
- - @tag_count.each do |tag, count|
- %span.label.notice
- %a{:href => "/search?q=#{tag}"}
- = "#{tag} (#{count})"
%h2
Features
%ul
- @features.each do |feature|
= haml :feature_link, {:locals => {:feature => feature}, :layout => false}
+ - if @tag_count.any?
+ %h2 Tags
+ %ul
+ - @tag_count.each do |tag, count|
+ %li
+ %a{:href => "/search?q=#{tag}"}
+ = "#{tag} (#{count})"
%div.content
+ - if @excessive_wip_tags
+ %div.alert-message.error
+ %p
+ = "You have #{@tag_count["@wip"]} @wip tags"
= yield