59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
<div class="project-block">
|
|
<div class="img-tag">
|
|
<%= content_tag('div', tag('img', {:src => '../images/logo-only_med.png', :class => 'img_ta'}, false, false), :class => 'img-tag') %>
|
|
</div>
|
|
<div class="wiki-description">
|
|
<p>
|
|
<span>Claimed by </span><%= content_tag('a', project.name) %> | <span>Analyzed about 11 hours ago</span>
|
|
</p>
|
|
<p>
|
|
<%= textilizable(project.short_description, :project => project) %>
|
|
</p>
|
|
</div>
|
|
<div class="information">
|
|
<p class="stats">
|
|
<%= content_tag('a', "9.23M") %><%= content_tag('span', "lines of codes") %>
|
|
</p>
|
|
<p class="stats">
|
|
<%= content_tag('a', "963") %><%= content_tag('span', "current contributors") %>
|
|
</p>
|
|
<p class="stats">
|
|
<%= content_tag('a', "1 day") %><%= content_tag('span', "since last commits") %>
|
|
</p>
|
|
<p class="stats">
|
|
<%= content_tag('a', "12,169") %><%= content_tag('span', "users on trustie2") %>
|
|
</p>
|
|
</div>
|
|
<div class="reviews">
|
|
<%= content_tag('a', tag('img', {:class => 'img-ta'}, false, false), :class => 'img-tag3') %>
|
|
<%= content_tag('div', "Vert High Activity", :class => 'img-tag4') %>
|
|
<%= content_tag('div', tag('img', {:src => '../images/stars_ro.png', :class => 'img-ta'}, false, false), :class => 'img-tag2') %>
|
|
<%= content_tag('div', "#{WatchersOfProjects.watcher_count(project)}Reviews", :class => 'img-tag1') %>
|
|
</div>
|
|
</div>
|
|
<div class="add-info">
|
|
<div class="main-language">
|
|
<%= content_tag('a', 'Mostly written in C++') %>
|
|
</div>
|
|
<div class="licences">
|
|
<%= content_tag('a', 'Licenses:') %><%= content_tag('span', 'GPL-2.0+, LGPL, MPL-1.1') %>
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
<%= tag('img', {:src => "../images/user.png"}, false, false) %>
|
|
<% tags = ProjectTags.find_tag(project.id)
|
|
tags.each do |t_tag|
|
|
content = t_tag.tag.content
|
|
description = t_tag.description -%>
|
|
<%= content_tag('a', content, :class => 'tag', :title => description) %>
|
|
<% end -%>
|
|
<%= content_tag('a', 'css', :class => 'tag') %>
|
|
<%= content_tag('a', 'web_browser', :class => 'tag') %>
|
|
<%= content_tag('a', 'development', :class => 'tag') %>
|
|
<%= content_tag('a', 'client', :class => 'tag') %>
|
|
<%= content_tag('a', 'web', :class => 'tag') %>
|
|
<%= content_tag('a', 'xhtml', :class => 'tag') %>
|
|
<%= content_tag('a', 'tabbed', :class => 'tag') %>
|
|
<%= content_tag('a', 'and more') %>
|
|
</div>
|