Wall redesign
This commit is contained in:
parent
59704f481e
commit
48924dfeea
12 changed files with 89 additions and 36 deletions
|
@ -9,8 +9,8 @@
|
|||
= link_to truncate_commit_message(commit, 60), project_commit_path(@project, :id => commit.id)
|
||||
|
||||
%span
|
||||
%span
|
||||
[ #{commit.author} ]
|
||||
%span.author
|
||||
= commit.author.name.force_encoding("UTF-8")
|
||||
%cite
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
ago
|
||||
|
|
|
@ -46,12 +46,6 @@
|
|||
Attachment:
|
||||
= link_to note.attachment_identifier, note.attachment.url
|
||||
%br
|
||||
-#%span
|
||||
%span
|
||||
[ #{note.author.name} ]
|
||||
%cite
|
||||
= time_ago_in_words(note.created_at)
|
||||
ago
|
||||
%br
|
||||
.append-bottom
|
||||
|
||||
|
|
|
@ -1 +1,26 @@
|
|||
%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
|
||||
= radio_button_tag :view, "day", (params[:view] || "day") == "day", :onclick => "this.form.submit()", :id => "day_view"
|
||||
= 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
|
||||
= render "notes/notes"
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
$("#note_note").live("click", function(){
|
||||
$(this).css("height", "100px");
|
||||
$('.attach_holder').show();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue