Fix no file in bulletin form

This commit is contained in:
chris 2013-07-22 17:41:21 +08:00
parent 6cf249ccfb
commit 2265b0b404
2 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@ en:
no_app: No module
no_category: No Available Category
no_date: No date
no_file: No file
previous: Previous
remove: Remove
remove_default: Remove default

View File

@ -2,8 +2,12 @@
<div class="fileupload fileupload-new start-line" data-provides="fileupload">
<% else %>
<div class="fileupload-exist start-line">
<% if form_file.file.blank? %>
<%= t(:no_file) %>
<% else %>
<%= link_to form_file.file_identifier, form_file.file.url, {:class => 'file-link for_preview', :target => '_blank', :title => t(:view), "data-trigger" => :hover}.merge(file_picture_preview_setting(form_file.file.url)) %>
<% end %>
<% end %>
<div class="input-prepend input-append">
<% if form_file.new_record? %>
<label>