dev_aliyun
杨树明 5 years ago
parent 1d1c8ad33d
commit 9a3191d1ce

@ -18,7 +18,10 @@
</ul>
</li>
<% end %>
<li class="<%= params[:controller] == "competitions" ? " active" : "" %>"><%= link_to "在线竞赛", competitions_path %></li>
<li class="<%= params[:controller] == "competitions" ? " active" : "" %>">
<%= link_to "在线竞赛", competitions_path %>
<img class="roundedRectangles" src="/images/educoder/roundedRectangle.png"/>
</li>
<li class="<%= params[:controller] == "libraries" ? " active" : "" %>"><%= link_to "教学案例", libraries_path %></li>
<li class="<%= params[:controller] == "forums" ? " active" : "" %>"><%= link_to "交流问答", forums_path %></li>
<% if User.current.ec_school.present? %>

@ -19,7 +19,10 @@
</ul>
</li>
<% end %>
<li class="<%= params[:controller] == "competitions" ? " active" : "" %>"><%= link_to "在线竞赛", competitions_path %></li>
<li class="<%= params[:controller] == "competitions" ? " active" : "" %>">
<%= link_to "在线竞赛", competitions_path %>
<img class="roundedRectangles" src="/images/educoder/roundedRectangle.png"/>
</li>
<li class="<%= params[:controller] == "libraries" ? " active" : "" %>"><%= link_to "教学案例", libraries_path %></li>
<li class="<%= params[:controller] == "forums" ? " active" : "" %>"><%= link_to "交流问答", forums_path %></li>
<!--<li><%#= link_to "活动竞赛", competitions_path %></li>-->

@ -31,5 +31,8 @@
</div>
<div class="-task-sidebars" style="right: 240px !important;">
<img src="/images/educoder/competition/lvmeng.png" width="150px" height="150px">
<a href="/competitions">
<img src="/images/educoder/competition/lvmeng.png" width="150px" height="150px">
</a>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

@ -301,7 +301,10 @@ class NewHeader extends Component {
</li>
{/* <li><a href="/libraries">教学案例</a></li> */}
<li className={`${competitions === true ? 'active' : ''}`} ><a href="/competitions">在线竞赛</a></li>
<li className={`${competitions === true ? 'active' : ''}`} >
<a href="/competitions">在线竞赛</a>
<img className="roundedRectangles" src="/images/educoder/roundedRectangle.png"/>
</li>
<li className={`${competitions === true ? 'active' : ''}`} style={{display:project_packages_url===null||project_packages_url===undefined||project_packages_url===""?'none':'block'}} >
<a href="/crowdsourcing">
{project_packages_url===null||project_packages_url===undefined||project_packages_url===""?'':'众包'}

@ -52,7 +52,9 @@ class SiderBar extends Component {
</div>
<div className="-task-sidebars" style={{right: "240px"}}>
<img src={getImageUrl("/images/educoder/competition/lvmeng.png")} width="150px" height="150px" />
<a href="/competitions">
<img src={getImageUrl("/images/educoder/competition/lvmeng.png")} width="150px" height="150px" />
</a>
</div>
</div>

@ -1220,3 +1220,9 @@ html>body #ajax-indicator { position: fixed; }
.marginuploading{
margin: 27px 42px;
}
.roundedRectangles{
position: absolute;
top: 10px;
right: -22px;
}
Loading…
Cancel
Save