From 816f2470fa75c1fec755b3b2945c8c611b3f32eb Mon Sep 17 00:00:00 2001 From: = Date: Sun, 25 Oct 2015 03:34:50 +0800 Subject: [PATCH 1/2] add more images --- lib/tasks/mock_data.rake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/tasks/mock_data.rake b/lib/tasks/mock_data.rake index 71f68cf..61f7882 100644 --- a/lib/tasks/mock_data.rake +++ b/lib/tasks/mock_data.rake @@ -29,6 +29,13 @@ namespace :db do Project.find_by(address: '省博').update_attributes(unit_type: 'book', unit_steps_count: 10000) Project.find_by(address: '黄鹤楼').update_attributes(unit_type: 'book', unit_steps_count: 10000) Project.find_by(address: '武汉大学').update_attributes(unit_type: 'book', unit_steps_count: 10000) + end + task add_missing_image: :environment do + Project.find_by(address: '红楼').update_attributes(image: 'http://7xleh2.dl1.z0.glb.clouddn.com/hong_lou.png') + Project.find_by(address: '省博').update_attributes(image: 'http://7xleh2.dl1.z0.glb.clouddn.com/sheng_bo.png') + Project.find_by(address: '黄鹤楼').update_attributes(image: 'http://7xleh2.dl1.z0.glb.clouddn.com/huanghelou.png') + Project.find_by(address: '武汉大学').update_attributes(image: 'http://7xleh2.dl1.z0.glb.clouddn.com/wu_da.png') end + end \ No newline at end of file From fc54b3b01031f2d106b150df7e107ef554126342 Mon Sep 17 00:00:00 2001 From: = Date: Sun, 25 Oct 2015 03:39:48 +0800 Subject: [PATCH 2/2] fix bug --- app/assets/stylesheets/result.scss | 1 + app/views/projects/result.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/result.scss b/app/assets/stylesheets/result.scss index 95f1ffd..4d056a5 100644 --- a/app/assets/stylesheets/result.scss +++ b/app/assets/stylesheets/result.scss @@ -66,6 +66,7 @@ bottom: 14px; left: 42%; color: rgb(170, 170, 170); + text-decoration: none; } } } \ No newline at end of file diff --git a/app/views/projects/result.html.erb b/app/views/projects/result.html.erb index 19a9471..b450da3 100644 --- a/app/views/projects/result.html.erb +++ b/app/views/projects/result.html.erb @@ -13,6 +13,6 @@ 写评价 推荐给朋友 -

转到首页

+
转到首页

\ No newline at end of file