add label on box

This commit is contained in:
yanxd 2014-01-14 15:41:56 +08:00
parent f1f08e150b
commit 997b90c3b2
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,10 @@ class StoresController < ApplicationController
limit(LIMIT) limit(LIMIT)
@attach_array = Array.new @attach_array = Array.new
@attach_array.push(@projects_attach, @courses_attach, @homeworks_attach, @memos_attach) @attach_array.push(@projects_attach, @courses_attach, @homeworks_attach, @memos_attach)
@str_arr = [ l(:label_project_deposit),
l(:label_course_practice),
l(:label_contest_innovate),
l(:label_forum) ]
end end
private private

View File

@ -74,7 +74,7 @@
<% @attach_array.each do |k|%> <% @attach_array.each do |k|%>
<div class="line_block"> <div class="line_block">
<p> <p>
c <%=@str_arr.shift%>
</p> </p>
<table style="width: 100%"> <table style="width: 100%">
<thead> <thead>