Skip to content

Commit

Permalink
disabled Private when user not login
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed May 17, 2010
1 parent 228c70d commit 1d4f569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/snippets/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
<%= f.label :language, "Language:" %>
<% languages_array = Language.all.map { |l| [l.name, l.id] } %>
<%= f.select(:language_id,languages_array) %>
<% if @current_user %>
<%= f.check_box :private %>
<%= f.label :private, (image_tag("icons/private.gif",:alt => "Private")) %>
<% end %>
</div>
</div>
<div class="row">
Expand Down

0 comments on commit 1d4f569

Please sign in to comment.