announcement edit to view file

This commit is contained in:
unknown 2012-04-24 15:18:29 +08:00
parent 3280ff8311
commit b76918d9d0
1 changed files with 2 additions and 0 deletions

View File

@ -1,9 +1,11 @@
<% # encoding: utf-8 %>
<tr id="<%= "bulletin_file_#{form_bulletin_file.id}" if !form_bulletin_file.new_record? %>" class='list_item'>
<td>
<div class="control-group">
<div class="controls">
<%= f.file_field :file %>
<%= form_bulletin_file.file.file ? ( link_to 'View', form_bulletin_file.file.url, {:target => '_blank', :title => 'View'} ) : '' %>
</div>
</div>
</td>