gitlabhq/app/views/projects/wall.html.haml

30 lines
1 KiB
Plaintext
Raw Normal View History

2011-10-20 18:21:58 +02:00
%div.wall_page
- if can? current_user, :write_note, @project
= render "notes/form"
.right
= form_tag wall_project_path(@project), :method => :get do
.span-2
2011-10-21 13:03:34 +02:00
= radio_button_tag :view, "recent", (params[:view] || "recent") == "recent", :onclick => "this.form.submit()", :id => "recent_view"
= label_tag "recent_view","Recent"
.span-2
= radio_button_tag :view, "day", params[:view] == "day", :onclick => "this.form.submit()", :id => "day_view"
2011-10-20 18:21:58 +02:00
= label_tag "day_view","Today"
.span-2
= radio_button_tag :view, "week", params[:view] == "week", :onclick => "this.form.submit()", :id => "week_view"
= label_tag "week_view","Week"
.span-2
= radio_button_tag :view, "all", params[:view] == "all", :onclick => "this.form.submit()", :id => "all_view"
= label_tag "all_view","All"
.clear
%br
%hr
2011-10-08 23:36:38 +02:00
= render "notes/notes"
2011-10-20 18:21:58 +02:00
:javascript
2011-10-20 18:21:58 +02:00
$(function(){
$("#note_note").live("click", function(){
$(this).css("height", "100px");
$('.attach_holder').show();
});
});