Trustie 是一个社交化的项目管理、软件开发和众包平台。
Trustieforge is a socialized collaboration platform for project management, software development and software crowdsourcing.
<%= call_hook :view_account_login_top %>
<%= form_tag(signin_path) do %> <%= back_url_hidden_field_tag %> <% unless User.current.logged? %> <% if Setting.openid? %> <% end %>
<%= text_field_tag 'username', params[:username], :tabindex => '1' %>
<%= password_field_tag 'password', nil, :tabindex => '2' %>
<%= text_field_tag "openid_url", nil, :tabindex => '3' %>
<% if Setting.autologin? %> <% end %>
<% if Setting.lost_password? %> <%= link_to l(:label_password_lost), lost_password_path %> <% end %>
<% else %>
<%= l(:label_welcome) %> <%=User.current.name%> <%= l(:label_join) %>
<%= image_tag(url_to_avatar(User.current), :class => 'avatar') %>
<%= l(:label_user_watcher) %> (<%= User.watched_by(User.current).count %>) <%= render :partial => "watchers/fans_num",:locals => {:fans_num => get_fans_num(User.current) }%>
<% unless User.current.memberships.empty? %> <%= l(:label_contribute_to, :project_count => "#{User.current.memberships.count}") %> <% for member in User.current.memberships %> <%= link_to_project(member.project) %><%= (User.current.memberships.last == member) ? '' : ',' %> <% end %> <% end %>
<% end %> <% end %>
<%= call_hook :view_account_login_bottom %> <% if params[:username].present? %> <%= javascript_tag "$('#password').focus();" %> <% else %> <%= javascript_tag "$('#username').focus();" %> <% end %>
<%= link_to image_tag("/images/welcome/1.png", weight:"200px", height:"200px"), :controller => 'projects', :action => 'index' %>   <%= link_to image_tag("/images/welcome/2.png", weight:"200px", height:"200px"), :controller => 'bids', :action => 'index' %>   <%= link_to image_tag("/images/welcome/3.png", weight:"200px", height:"200px") %>
<%= l(:label_create_new_projects_description) %>   <%= l(:label_call_for_bids_description) %>   <%= l(:label_create_course_description) %>
<%= l(:label_features) %>
<%= image_tag("/images/welcome/discuss.png", weight:"30px", height: "26px") %><%= l(:label_board) %>   <%= image_tag("/images/welcome/news.png", weight:"30px", height: "26px") %><%= l(:label_news) %>   <%= image_tag("/images/welcome/boards.png", weight:"30px", height: "26px") %><%= l(:label_milestone) %>
<%= l(:label_board_description) %>   <%= l(:label_news_description) %>   <%= l(:label_milestone_description) %>