2014-04-08 09:28:23 +08:00
|
|
|
<style>
|
|
|
|
.information .stats a{
|
|
|
|
width: 80px;
|
|
|
|
text-align: right;
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: bold;
|
|
|
|
font-style: 1.2em;
|
|
|
|
}
|
|
|
|
.information .stats span{
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
</style>
|
2014-03-29 10:57:36 +08:00
|
|
|
<div class="project-block">
|
|
|
|
<div class="img-tag">
|
2014-04-08 09:02:12 +08:00
|
|
|
<%= image_tag('../images/avatars/Project/0', :class => 'avatar2') %>
|
2014-03-29 10:57:36 +08:00
|
|
|
</div>
|
|
|
|
<div class="wiki-description">
|
|
|
|
<p>
|
|
|
|
<%= textilizable(project.short_description, :project => project) %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="information">
|
2014-04-08 09:28:23 +08:00
|
|
|
<p class="stats">
|
|
|
|
<%= link_to project.users_count %>
|
2014-03-29 10:57:36 +08:00
|
|
|
<%= content_tag('span', l(:label_x_follow_people,:count =>0)) %>
|
|
|
|
</p>
|
|
|
|
<p class="stats">
|
2014-04-08 09:28:23 +08:00
|
|
|
<%=link_to 1%>
|
2014-03-29 10:57:36 +08:00
|
|
|
<%= content_tag('span', l(:label_x_current_contributors, :count => 0)) %>
|
|
|
|
</p>
|
|
|
|
<p class="stats">
|
2014-04-08 09:28:23 +08:00
|
|
|
<%=link_to project.commit_count %>
|
2014-03-29 10:57:36 +08:00
|
|
|
<%= content_tag('span', l(:label_since_last_commits)) %>
|
|
|
|
</p>
|
|
|
|
<p class="stats">
|
2014-04-08 09:28:23 +08:00
|
|
|
<%=link_to project.code_line %>
|
2014-04-01 08:51:43 +08:00
|
|
|
<%= content_tag('span', "行代码") %>
|
2014-03-29 10:57:36 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="add-info">
|
|
|
|
<div class="main-language">
|
|
|
|
|
|
|
|
<%= content_tag('span', "#{l(:default_role_manager)}: ") %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="licences">
|
|
|
|
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(project.created_at)) %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2014-04-01 08:51:43 +08:00
|
|
|
<div class="url">
|
|
|
|
<div class="main-language">
|
|
|
|
<%= content_tag('span', "项目来源:")%><%= link_to project.url, project.url %>
|
|
|
|
</div>
|
|
|
|
<div class="licences">
|
2014-04-19 11:03:54 +08:00
|
|
|
<%= content_tag('span', "数据更新时间:") %><%= content_tag('span', project.date_collected) %>
|
2014-04-01 08:51:43 +08:00
|
|
|
</div>
|
2014-04-03 14:41:04 +08:00
|
|
|
</div>
|
2014-03-29 10:57:36 +08:00
|
|
|
<div class="tags">
|
|
|
|
<div id="tags">
|
|
|
|
<%= image_tag( "/images/sidebar/tags.png") %>
|
2014-05-05 15:33:24 +08:00
|
|
|
<%= render :partial => 'tags/tag_name', :locals => {:obj => project,:object_flag => "8",:non_list_all => true }%>
|
2014-03-29 10:57:36 +08:00
|
|
|
</div>
|
|
|
|
</div>
|