<%= l(:label_mobile_version) %>

发布新版本
<%= form_tag({:controller => 'admin', :action => 'create_version'},{:id => 'new_version',:style=>'display:none'}) do %>

<%= text_field_tag 'version', params[:version],:value => @new_version.version, :size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>

<%= text_field_tag 'description', params[:description],:value => @new_version.description,:size => 30,:style => "font-size:small;width:490px;margin-left:10px;" %>

<%= render :partial => 'attachments/form', :locals => {:container => @new_version} %>

<%= submit_tag l(:button_save), :class => "small", :name => nil %> <% end %>

当前版本:
<% if @versions.count > 0 %> "> <% end %>
<%=l(:label_version_number)%> <%=l(:label_version_description)%>
<%= @versions.first.version %> <%= @versions.first.description %>
<% if !@versions.first.nil? && @versions.first.attachments.any?%> <% options = {:author => true, :deletable => true } %> <%= render :partial => 'attachments/links', :locals => {:attachments => @versions.first.attachments, :options => options, :is_float => true} %> <% end %>
历史版本:
<% if @versions.count > 0 %> <% for version in @versions %> "> <% end %> <% end %>
<%=l(:label_version_number)%> <%=l(:label_version_description)%>
<%= version.version %> <%= version.description %>
<% html_title(l(:label_mobile_version)) -%>