From 47185bdcc223d16352b2399270e150bce2fa60f5 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Fri, 30 Aug 2013 16:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=20-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_bid_show.html.erb | 20 +++++++++++++------- app/views/users/watch_bids.html.erb | 12 ++++++++---- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/app/views/bids/_bid_show.html.erb b/app/views/bids/_bid_show.html.erb index 534e84a12..68d221886 100644 --- a/app/views/bids/_bid_show.html.erb +++ b/app/views/bids/_bid_show.html.erb @@ -13,19 +13,25 @@ - - -
-<% if bid.reward_type.nil? or bid.reward_type == 1%> +
+ <% if bid.reward_type.nil? or bid.reward_type == 1%> <%= l(:label_bids_reward_method) %><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= bid.budget%> <% elsif bid.reward_type == 2%> <%= l(:label_bids_reward_method) %><%= bid.budget%> <% else %> <%= l(:label_bids_reward_method) %><%= l(:label_bids_credit) %> <%= bid.budget%> <%= l(:label_bids_credit_number) %> <% end %> -(<%= link_to bid.biding_projects.count, project_for_bid_path(bid)%>)<%= l(:label_biding_project) %> -(<%= link_to bid.commit, respond_path(bid)%>)<%= l(:label_responses) %> -(<%= link_to bid.watcher_users.count, respond_path(bid)%>)<%= l(:label_followers) %>
+ + + + + + <%= l(:label_biding_project) %>(<%=link_to bid.biding_projects.count, project_for_bid_path(bid) %>) + <%= l(:label_responses) %>(<%=link_to bid.commit, respond_path(bid) %>) + <%= l(:label_followers) %>(<%=link_to bid.watcher_users.count, respond_path(bid) %>) + + + <%= format_time bid.created_on %> diff --git a/app/views/users/watch_bids.html.erb b/app/views/users/watch_bids.html.erb index d142411ac..b12c03c10 100644 --- a/app/views/users/watch_bids.html.erb +++ b/app/views/users/watch_bids.html.erb @@ -23,12 +23,16 @@ <%= l(:label_bids_reward_method) %><%= bid.budget%> <% else %> <%= l(:label_bids_reward_method) %><%= l(:label_bids_credit) %> <%= bid.budget%> <%= l(:label_bids_credit_number) %> - <% end %> + <% end %> - (<%= bid.biding_projects.count%>)<%= l(:label_biding_project) %> - (<%= bid.commit %>)<%= l(:label_responses) %> - (<%= bid.watcher_users.count%>)<%= l(:label_followers) %> + + + + <%= l(:label_biding_project) %>(<%=link_to bid.biding_projects.count, project_for_bid_path(bid) %>) + <%= l(:label_responses) %>(<%=link_to bid.commit, respond_path(bid) %>) + <%= l(:label_followers) %>(<%=link_to bid.watcher_users.count, respond_path(bid) %>) + <%= format_time bid.created_on %>