Permalink
Browse files

Ignore plugins files.

  • Loading branch information...
1 parent 412cf4c commit 693a634810bd497ae6cf50934a7a035bf2c1b2ff @19WAS85 committed Jul 28, 2010
Showing with 9 additions and 6 deletions.
  1. +2 −1 .gitignore
  2. +7 −5 views/_meta.erb
View
@@ -1 +1,2 @@
-wind.db
+wind.db
+plugins/**.*
View
@@ -17,11 +17,13 @@
</section>
<section id="widgets">
<% @widgets.each do |widget| %>
- <div class="widget">
- <h1><%= widget.title %><%= edit_link 'widget', widget.id %></h1>
- <div class="content">
- <%= widget.content %>
+ <% if not widget.admin or (logged? and widget.admin) %>
+ <div class="widget">
+ <h1><%= widget.title %><%= edit_link 'widget', widget.id %></h1>
+ <div class="content">
+ <%= widget.content %>
+ </div>
</div>
- </div>
+ <% end %>
<% end %>
</section>

0 comments on commit 693a634

Please sign in to comment.