From 997b90c3b2c136493577b0dd6f307254b50da5e8 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 14 Jan 2014 15:41:56 +0800 Subject: [PATCH] add label on box --- app/controllers/stores_controller.rb | 4 ++++ app/views/stores/index.html.erb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/stores_controller.rb b/app/controllers/stores_controller.rb index 634210d7..ea45acae 100644 --- a/app/controllers/stores_controller.rb +++ b/app/controllers/stores_controller.rb @@ -30,6 +30,10 @@ class StoresController < ApplicationController limit(LIMIT) @attach_array = Array.new @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 private diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index 16528069..4642e18c 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -74,7 +74,7 @@ <% @attach_array.each do |k|%>

- c + <%=@str_arr.shift%>