@ -0,0 +1,82 @@
|
|||||||
|
<% if @type == 'p_package' && User.current == @user %>
|
||||||
|
<div class="edu-back-white padding20-30 clearfix secondNav educontent bor-top-greyE">
|
||||||
|
<li class="<%= @p == 'a' ? 'active' : '' %>"><%= link_to "全部", user_path(@user, :type => @type), :remote => true %></li>
|
||||||
|
<li class="<%= @p == '0' ? 'active' : '' %>"><%= link_to "未发布", user_path(@user, :type => @type, :p => "0"), :remote => true %></li>
|
||||||
|
<li class="<%= @p == '1' ? 'active' : '' %>"><%= link_to "竞标中", user_path(@user, :type => @type, :p => "1"), :remote => true %></li>
|
||||||
|
<li class="<%= @p == '2' ? 'active' : '' %>"><%= link_to "已完成", user_path(@user, :type => @type, :p => "2"), :remote => true %></li>
|
||||||
|
</div>
|
||||||
|
<% elsif @type == 'l_package' && User.current == @user %>
|
||||||
|
<div class="edu-back-white padding20-30 clearfix secondNav educontent bor-top-greyE">
|
||||||
|
<li class="<%= @p == 'a' ? 'active' : '' %>"><%= link_to "全部", user_path(@user, :type => @type, :p => "a"), :remote => true %></li>
|
||||||
|
<li class="<%= @p == '0' ? 'active' : '' %>"><%= link_to "未中标", user_path(@user, :type => @type, :p => "0"), :remote => true %></li>
|
||||||
|
<li class="<%= @p == '1' ? 'active' : '' %>"><%= link_to "已中标", user_path(@user, :type => @type, :p => "1"), :remote => true %></li>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<div class="pl25 pr25 clearfix font-12 mt20 mb20 educontent">
|
||||||
|
<span class="fl color-grey-9">共<%= @objects_count %>个</span>
|
||||||
|
<div class="fr edu-menu-panel">
|
||||||
|
<%= link_to '发布时间', user_path(@user, :order => @new_order, :sort => @sort, :type => @type), :class => "fl color-grey-9", :remote => true %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% if @objects_count > 0 %>
|
||||||
|
<div class="educontent project-packages-list">
|
||||||
|
<% @objects.each do |object| %>
|
||||||
|
<div class="project-package-item">
|
||||||
|
<div class="item-image">
|
||||||
|
<%= image_tag("educoder/project_packages/#{object.category}.png") %>
|
||||||
|
</div>
|
||||||
|
<div class="item-body">
|
||||||
|
<div class="item-head">
|
||||||
|
<div class="item-head-title">
|
||||||
|
<%= link_to object.title, project_package_path(object) %>
|
||||||
|
</div>
|
||||||
|
<div class="item-head-tags">
|
||||||
|
<% if object.creator_id != @user.id %>
|
||||||
|
<% bidding_user = object.bidding_users.find_by_user_id(@user.id) %>
|
||||||
|
<%= raw content_tag(:span, bidding_user.status_text, class: bidding_user.status) %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="item-head-blank"></div>
|
||||||
|
<div class="item-head-price">
|
||||||
|
<span>¥</span><%= object.min_price %>
|
||||||
|
<% if object.max_price && object.max_price != object.min_price %>
|
||||||
|
~<span>¥</span><%= object.max_price %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-category">
|
||||||
|
<div class="item-category-item">人工智能</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-other">
|
||||||
|
<div class="item-group item-other-visit">
|
||||||
|
<span class="item-group-icon"><i class="fa fa-eye"></i></span>
|
||||||
|
<span class="item-group-text"><%= object.visit_count %>人浏览</span>
|
||||||
|
</div>
|
||||||
|
<div class="item-group item-other-deadline">
|
||||||
|
<% if object.published? %>
|
||||||
|
<span class="item-group-icon"><i class="fa fa-clock-o"></i></span>
|
||||||
|
<span class="item-group-text">内竞标截止</span>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="item-group item-other-bidding">
|
||||||
|
<% if object.bidding_users_count > 0 %>
|
||||||
|
<span class="item-group-icon"><i class="fa fa-user-o"></i></span>
|
||||||
|
<span class="item-group-text"><%= object.bidding_users_count %>人竞标</span>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="item-other-blank"></div>
|
||||||
|
<div class="item-group item-other-publish-at">
|
||||||
|
<% if object.published_at.present? %>
|
||||||
|
<span class="item-group-text">发布日期:<%= object.published_at.try(:strftime, '%Y-%m-%d') %></span>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<%= render :partial => "welcome/no_data" %>
|
||||||
|
<% end %>
|
@ -0,0 +1,6 @@
|
|||||||
|
'zh':
|
||||||
|
bidding_user:
|
||||||
|
status:
|
||||||
|
pending: 竞标中
|
||||||
|
bidding_won: 已中标
|
||||||
|
bidding_lost: 未中标
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |