竞赛模块首页布局和显示效果调整好

This commit is contained in:
wanglinchun 2014-04-16 20:23:38 +08:00
parent 3a5b5bc0ce
commit 1a6a20e761
4 changed files with 19 additions and 4 deletions

View File

@ -0,0 +1,15 @@
<div id="issues">
<% if contests_results.size > 0 %>
<hr />
<% contests_results.each do |contest| %>
<p class="font_description2">
<strong><%= l(:label_tags_contest) %>:<%= link_to "#{contest.name}",
:controller => "contests",:action => "show",:id => contest.id %></strong>
<br />
<strong><%= l(:label_tags_contest_description) %>:</strong><%= contest.description %>
<%= contest.updated_on %>
</p>
<div class="line_under"></div>
<% end %>
<% end %>
</div>

View File

@ -141,7 +141,7 @@
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[5]) %>
<li style="position:relative;height:6em;" class='<%= cycle("odd", "even") %>'>
<div class="avatar-4"; style="float: left;">
<div class="avatar-4"; style="float: left; margin-top: 7px">
<%= image_tag('/images/039.gif')%>
</div>
@ -196,14 +196,14 @@
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
<h3 style="margin-left: 5px; color: #e8770d;"><strong>最新参赛应用</strong></h3>
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'contests', :action => 'index', :host => Setting.contest_domain}, :target => "_blank" %></span>
<div class="d-p-projectlist-box">
<div class="d-p-projectlist">
<% find_all_hot_softapplication.map do |softapplication| break if(softapplication == find_all_hot_softapplication[5]) %>
<li style="position:relative;height:6em;" class='<%= cycle("odd", "even") %>'>
<div class="avatar-4"; style="float: left;">
<%= image_tag('/images/007.gif')%>
<div class="avatar-4"; style="float: left; margin-top: 7px">
<%= image_tag('/images/009.gif')%>
</div>
<div style="float: left; margin-left: -8px; margin-top: 5px; width: 380px;">

BIN
public/images/008.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/images/009.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B