diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index 4f8350fa2..73c09c6ec 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -155,10 +155,17 @@
-

<%=l(:label_current_hot_contest)%>

- <%= link_to l(:label_more_information), {:controller => 'contests', :action => 'index'}, :target => "_blank" %> + + <% if User.current.logged? %> + <% unless User.current.user_extensions.identity == 1 %> + <%= link_to(l(:label_newtype_contest), {:controller => 'bids', :action => 'new_contest'}, :class => 'icon icon-add') %> + <% end %> + <% end %> +    + <%= link_to l(:label_more_information), {:controller => 'contests', :action => 'index'}, :target => "_blank" %> +
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[5]) %> @@ -169,7 +176,6 @@
- <%= link_to(contest.name, contest_contestnotifications_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}", :target => "_blank") %> <% if contest.id == 2 or contest.id == 3 or contest.id == 6 %> (<%= link_to("#{contest.projects.where('is_public=1').count}"+l(:label_work_quantity), show_attendingcontest_contest_path(contest), :target => "_blank") %>)