Show More
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@359 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/announcements/index.html.erb
| 31 lines
| 822 B
| text/plain
| TextLexer
|
|
r97 | <% content_for :head do %> | ||
<%= javascript_include_tag :defaults %> | ||||
<% end %> | ||||
<h1>Listing announcements</h1> | ||||
|
r103 | <%= link_to 'New announcement', new_announcement_path %> | ||
|
r97 | <table> | ||
<tr> | ||||
<th>Body</th> | ||||
<th>Author</th> | ||||
<th>Published</th> | ||||
</tr> | ||||
<% for announcement in @announcements %> | ||||
<tr> | ||||
<% @announcement = announcement %> | ||||
<td><%=h announcement.body %></td> | ||||
<td><%=h announcement.author %></td> | ||||
<td><%= in_place_editor_field :announcement, :published, {}, :rows => 1 %></td> | ||||
<td><%= link_to 'Show', announcement %></td> | ||||
<td><%= link_to 'Edit', edit_announcement_path(announcement) %></td> | ||||
<td><%= link_to 'Destroy', announcement, :confirm => 'Are you sure?', :method => :delete %></td> | ||||
</tr> | ||||
<% end %> | ||||
</table> | ||||
<br /> | ||||
<%= link_to 'New announcement', new_announcement_path %> | ||||