gitlabhq/app/views/notes/_notes.html.haml

29 lines
710 B
Text
Raw Normal View History

2011-10-21 19:04:41 +02:00
- if controller.action_name == "wall"
%ul#notes-list= render "notes/notes_list"
2011-10-13 03:00:00 +02:00
2011-10-21 19:04:41 +02:00
- else
%ul#notes-list= render "notes/notes_list"
%br
%br
- if can? current_user, :write_note, @project
= render "notes/form"
2011-10-13 03:00:00 +02:00
:javascript
$('.delete-note').live('ajax:success', function() {
$(this).closest('li').fadeOut(); });
2011-10-21 19:04:41 +02:00
$("#new_note").live("ajax:before", function(){
$("#submit_note").attr("disabled", "disabled");
})
2011-10-13 03:00:00 +02:00
2011-10-21 19:04:41 +02:00
$("#new_note").live("ajax:complete", function(){
$("#submit_note").removeAttr("disabled");
})
- if ["issues", "projects"].include?(controller.controller_name)
:javascript
$(function(){
var int =self.setInterval("updatePage()", 20000);
});