- <%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %> |
+
+ <%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %>
+ |
<%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title:topic.subject.to_s %>
+ <%= topic.locked? ? 'locked' : '' %>">
+ <%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title:topic.subject.to_s %>
|
diff --git a/app/views/contest_notification/show.html.erb b/app/views/contest_notification/show.html.erb
index 93fa1f4af..5664d5398 100644
--- a/app/views/contest_notification/show.html.erb
+++ b/app/views/contest_notification/show.html.erb
@@ -9,8 +9,12 @@
- contest.trustie.net |
- <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'welcome', :action => 'contest' %> > 详情 |
+
+ contest.trustie.net
+ |
+
+ <%=link_to l(:field_homepage), home_path %> >
+ <%=link_to l(:label_contest_innovate), welcome_contest_path %> > 详情 |
diff --git a/app/views/contestnotifications/_form.html.erb b/app/views/contestnotifications/_form.html.erb
index afcb60657..36bcd78c6 100644
--- a/app/views/contestnotifications/_form.html.erb
+++ b/app/views/contestnotifications/_form.html.erb
@@ -3,8 +3,23 @@
<%= l(:bale_news_notice) %>
- <%= f.text_field :title, :required => true, :size => 60,:maxlength => 60, :style => "width:488px;" %>
- <%= f.text_area :description, :required => true, :cols => 60, :rows => 11, :class => 'wiki-edit', :style => "width:490px;" %>
+
+ <%= f.text_field :title,
+ :required => true,
+ :size => 60,
+ :maxlength => 60,
+ :style => "width:488px;"
+ %>
+
+
+ <%= f.text_area :description,
+ :required => true,
+ :cols => 60,
+ :rows => 11,
+ :class => 'wiki-edit',
+ :style => "width:490px;"
+ %>
+
diff --git a/app/views/contestnotifications/_news.html.erb b/app/views/contestnotifications/_news.html.erb
index fbac2557f..c8af85cf4 100644
--- a/app/views/contestnotifications/_news.html.erb
+++ b/app/views/contestnotifications/_news.html.erb
@@ -2,24 +2,47 @@
| <%#= link_to h(news.title), news_path(news) %>
<%#= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>
- <%# unless news.summary.blank? %> | <%#=h news.summary %><% end %> |
+ <%# unless news.summary.blank? %><%#=h news.summary %> |
<%#= authoring news.created_on, news.author %> | -->
- |
+
+
+ |
- <%=link_to contestnotifications.author,contest_contestnotification_path(contestnotifications)%>
- <%= l(:label_project_newshare) %> <%= link_to h(contestnotifications.title), contest_contestnotification_path(contestnotifications) %>
+ |
+
+ <%=link_to contestnotifications.author,
+ contest_contestnotification_path(contestnotifications)
+ %>
+
+
+ <%= l(:label_project_newshare) %>
+
+ <%= link_to h(contestnotifications.title),
+ contest_contestnotification_path(contestnotifications)
+ %>
|
- <%=h contestnotifications.description%> |
+
+
+ <%=h contestnotifications.description%>
+
+ |
- <%= contestnotifications.created_at %> |
- <%= link_to l(:label_project_newother),contest_contestnotification_path(contestnotifications)%>
+ |
+
+ <%= contestnotifications.created_at %>
+
+ |
+
+ <%= link_to l(:label_project_newother),
+ contest_contestnotification_path(contestnotifications)
+ %>
<%= "(#{l(:label_x_comments, :count => contestnotifications.notificationcomments_count)})" if contestnotifications.notificationcomments_count > 0 %>
|
diff --git a/app/views/contestnotifications/edit.html.erb b/app/views/contestnotifications/edit.html.erb
index 7b91d922c..1606d97d6 100644
--- a/app/views/contestnotifications/edit.html.erb
+++ b/app/views/contestnotifications/edit.html.erb
@@ -1,9 +1,15 @@
<%=l(:label_news)%>
-<%= labelled_form_for @contestnotification, url: contest_contestnotification_path, :html => { :id => 'contestnotifications-form', :multipart => true, :method => :put } do |f| %>
+<%= labelled_form_for @contestnotification,
+ :url => contest_contestnotification_path,
+ :html => { :id => 'contestnotifications-form',
+ :multipart => true,
+ :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
-<%= preview_link preview_contestnotifications_path(id: @contestnotification), 'contestnotifications-form' %>
+<%= preview_link preview_contestnotifications_path(id: @contestnotification),
+ 'contestnotifications-form'
+%>
<% end %>
diff --git a/app/views/contestnotifications/new.html.erb b/app/views/contestnotifications/new.html.erb
index 30d5f0106..a5a1c7e58 100644
--- a/app/views/contestnotifications/new.html.erb
+++ b/app/views/contestnotifications/new.html.erb
@@ -1,5 +1,7 @@
-<%= labelled_form_for @contestnotification, :url => contest_contestnotifications_path(@contest), :html => { :id => 'contestnotifications-form', :multipart => true } do |f| %>
+<%= labelled_form_for @contestnotification,
+ :url => contest_contestnotifications_path(@contest),
+ :html => { :id => 'contestnotifications-form', :multipart => true } do |f| %>
<%= render :partial => 'contestnotifications/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
<%= submit_tag l(:button_cancel), :class => "whiteButton m3p10 h30",:onclick => "cancel();" %>
diff --git a/app/views/contestnotifications/show.html.erb b/app/views/contestnotifications/show.html.erb
index b6ac88008..a44ee5909 100644
--- a/app/views/contestnotifications/show.html.erb
+++ b/app/views/contestnotifications/show.html.erb
@@ -1,21 +1,26 @@
<%= link_to(l(:button_edit),
- edit_contest_contestnotification_path(@contest, @contestnotification),
- :class => 'icon icon-edit',
- :accesskey => accesskey(:edit),
- :onclick => '$("#edit-contestnotifications").show(); return true;') if (User.current.admin? && User.current.logged? )||(User.current == @contest.author && User.current.logged?)%>
+ edit_contest_contestnotification_path(@contest, @contestnotification),
+ :class => 'icon icon-edit',
+ :accesskey => accesskey(:edit),
+ :onclick => '$("#edit-contestnotifications").show(); return true;') if (User.current.admin? && User.current.logged? )||(User.current == @contest.author && User.current.logged?)%>
<%= delete_link contest_contestnotification_path(@contest, @contestnotification) if (User.current.admin? && User.current.logged? )||(User.current == @contest.author && User.current.logged?) %>
<%=h @contestnotification.title %>
- <%= labelled_form_for @contestnotification, :url => contest_contestnotification_path(@contest),
- :html => { :id => 'contestnotifications-form', :multipart => true, :method => :put } do |f| %>
+ <%= labelled_form_for @contestnotification,
+ :url => contest_contestnotification_path(@contest),
+ :html => { :id => 'contestnotifications-form',
+ :multipart => true,
+ :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
- <%= link_to l(:button_cancel), "#", :onclick => '$("#edit-contestnotifications").hide(); return false;' %>
+ <%= link_to l(:button_cancel),
+ "#",
+ :onclick => '$("#edit-contestnotifications").hide(); return false;' %>
<% end %>
@@ -23,7 +28,9 @@
<% end %>
diff --git a/app/views/contests/new_contest.html.erb b/app/views/contests/new_contest.html.erb
index 7366b4203..019c8c1db 100644
--- a/app/views/contests/new_contest.html.erb
+++ b/app/views/contests/new_contest.html.erb
@@ -1,10 +1,12 @@
<%=l(:label_newtype_contest)%>
-<%= labelled_form_for @contest, :url => {:controller => 'contests', :action => 'create_contest'}, method: :post do |f| %>
+<%= labelled_form_for @contest,
+ :url => {:controller => 'contests', :action => 'create_contest'},
+ method: :post do |f| %>
- <%= render :partial => 'form_contest', :locals => { :f => f } %>
- <%= submit_tag l(:button_create) %>
- <%= javascript_tag "$('#bid_name').focus();" %>
- <% end %>
+ <%= render :partial => 'form_contest', :locals => { :f => f } %>
+ <%= submit_tag l(:button_create) %>
+ <%= javascript_tag "$('#bid_name').focus();" %>
+ <% end %>
\ No newline at end of file
diff --git a/app/views/contests/set_reward_project.js.erb b/app/views/contests/set_reward_project.js.erb
index c0de3e2ef..2ea06abb1 100644
--- a/app/views/contests/set_reward_project.js.erb
+++ b/app/views/contests/set_reward_project.js.erb
@@ -1,26 +1,27 @@
+
$('#reward_result_<%= @contesting_project_id %>').html('<%= j(
-if get_prize(@c_p).nil? or get_prize(@c_p) == ""
+if get_prize(@c_p).nil? || get_prize(@c_p) == ""
if @contest.deadline < Date.today
puts '未评奖'
end
else
case get_prize(@c_p)
- when '-1'
- image_tag("/images/bid/special_reward.png")
- when '0'
- image_tag("/images/bid/first_reward.png")
- when '1'
- image_tag("/images/bid/second_reward.png")
- when '2'
- image_tag("/images/bid/third_reward.png")
- when '3'
- image_tag("/images/bid/forth_reward.png")
- when '4'
- image_tag("/images/bid/fifth_reward.png")
- when '5'
- image_tag("/images/bid/qualified.png")
+ when '-1'
+ image_tag("/images/bid/special_reward.png")
+ when '0'
+ image_tag("/images/bid/first_reward.png")
+ when '1'
+ image_tag("/images/bid/second_reward.png")
+ when '2'
+ image_tag("/images/bid/third_reward.png")
+ when '3'
+ image_tag("/images/bid/forth_reward.png")
+ when '4'
+ image_tag("/images/bid/fifth_reward.png")
+ when '5'
+ image_tag("/images/bid/qualified.png")
end
end
diff --git a/app/views/contests/set_reward_softapplication.js.erb b/app/views/contests/set_reward_softapplication.js.erb
index a8cf0d486..2906d95d3 100644
--- a/app/views/contests/set_reward_softapplication.js.erb
+++ b/app/views/contests/set_reward_softapplication.js.erb
@@ -1,26 +1,28 @@
+
$('#reward_result_<%= @contesting_softapplication_id %>').html('<%= j(
-if get_prize(@c_sa).nil? or get_prize(@c_sa) == ""
+
+if get_prize(@c_sa).nil? || get_prize(@c_sa) == ""
if @contest.deadline < Date.today
puts '未评奖'
end
else
case get_prize(@c_sa)
- when '-1'
- image_tag("/images/bid/special_reward.png")
- when '0'
- image_tag("/images/bid/first_reward.png")
- when '1'
- image_tag("/images/bid/second_reward.png")
- when '2'
- image_tag("/images/bid/third_reward.png")
- when '3'
- image_tag("/images/bid/forth_reward.png")
- when '4'
- image_tag("/images/bid/fifth_reward.png")
- when '5'
- image_tag("/images/bid/qualified.png")
+ when '-1'
+ image_tag("/images/bid/special_reward.png")
+ when '0'
+ image_tag("/images/bid/first_reward.png")
+ when '1'
+ image_tag("/images/bid/second_reward.png")
+ when '2'
+ image_tag("/images/bid/third_reward.png")
+ when '3'
+ image_tag("/images/bid/forth_reward.png")
+ when '4'
+ image_tag("/images/bid/fifth_reward.png")
+ when '5'
+ image_tag("/images/bid/qualified.png")
end
end
diff --git a/app/views/contests/settings.html.erb b/app/views/contests/settings.html.erb
index a2780f060..4f8b8b0f2 100644
--- a/app/views/contests/settings.html.erb
+++ b/app/views/contests/settings.html.erb
@@ -1,6 +1,7 @@
- | <%=l(:label_contest_settings)%> |
+ <%=l(:label_contest_settings)%> |
+
diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb
index 799656f36..b9616043d 100644
--- a/app/views/contests/show_attendingcontest.html.erb
+++ b/app/views/contests/show_attendingcontest.html.erb
@@ -79,16 +79,27 @@
<%= render_flash_messages %>
- <%= l(:label_wellmeaning_intimation_contentone) %>
- 1) <%= l(:label_wellmeaning_intimation_contenttwo) %>
- 2) <%= l(:label_wellmeaning_intimation_contentthree) %>
+
+ <%= l(:label_wellmeaning_intimation_contentone) %>
+
+
+ 1) <%= l(:label_wellmeaning_intimation_contenttwo) %>
+
+
+ 2) <%= l(:label_wellmeaning_intimation_contentthree) %>
+
<% if User.current.logged? %>
<%= l(:label_attending_contest) %>:
- <%= link_to l(:label_new_attendingcontest_work), "javascript:void(0);", onclick: "$('#put-project-form').slideToggle();" %>
+
+ <%= link_to l(:label_new_attendingcontest_work),
+ "javascript:void(0);",
+ onclick: "$('#put-project-form').slideToggle();"
+ %>
+
<% else %>
diff --git a/app/views/contests/show_contest.html.erb b/app/views/contests/show_contest.html.erb
index 121f5e690..11937d2bd 100644
--- a/app/views/contests/show_contest.html.erb
+++ b/app/views/contests/show_contest.html.erb
@@ -2,9 +2,18 @@
<%= image_tag(url_to_avatar(@contest.author), :class => "avatar")%>
- <%= link_to(@contest.author.lastname+@contest.author.firstname, user_path(@contest.author))%>:<%= @contest.name %>
+
+ <%= link_to(@contest.author.lastname+@contest.author.firstname,
+ user_path(@contest.author))
+ %>
+ :<%= @contest.name %>
- <%= l(:label_bids_reward_method) %><%= @contest.budget%>
+
+ <%= l(:label_bids_reward_method) %>
+
+ <%= @contest.budget%>
+
+
<%= @contest.description %>
@@ -15,7 +24,11 @@
<%= render :partial => "/praise_tread/praise_tread",
- :locals => {:obj => @contest,:show_flag => true,:user_id =>User.current.id,:horizontal => false}%>
+ :locals => {:obj => @contest,
+ :show_flag => true,
+ :user_id =>User.current.id,
+ :horizontal => false}
+ %>
@@ -23,7 +36,9 @@
- <%= render :partial => 'history', :locals => { :contest => @contest, :journals => @jour, :state => false} %>
+ <%= render :partial => 'history',
+ :locals => { :contest => @contest, :journals => @jour, :state => false}
+ %>
| |