解决项目中文档为空情况显示异常

新建文件文件术语改变
This commit is contained in:
huang 2015-03-11 15:14:13 +08:00
parent cbfb72bd5b
commit 078d2fa488
2 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@
</div> </div>
<% if @grouped.empty? %> <% if @grouped.empty? %>
<p class="nodata"> <p class="nodata" style="margin-top: 30px;">
<%= l(:label_no_data) %> <%= l(:label_no_data) %>
</p> </p>
<% end %> <% end %>

View File

@ -8,11 +8,10 @@
<% if @versions.any? %> <% if @versions.any? %>
<p><label for="version_id"><%=l(:field_version)%></label> <p><label for="version_id"><%=l(:field_version)%></label>
<%= select_tag "version_id", content_tag('option', '') + <%= select_tag "version_id", content_tag('option', '') + options_from_collection_for_select(@versions, "id", "name") %></p>
options_from_collection_for_select(@versions, "id", "name") %></p>
<% end %> <% end %>
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> <p><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form' %></p>
</div> </div>
<%= submit_tag l(:button_add) %> <%= submit_tag l(:button_add) %>
<% end %> <% end %>