2013-08-03 22:22:17 +08:00
<!-- <div class="table_">
2013-08-12 10:25:23 +08:00
<table background="/images/welcome/backgroundnew.png" height="600" width="928">
<tr><td align="left">
<%= call_hook :view_account_login_top %>
<div id="login-form_new">
<%= form_tag(signin_path) do %>
<%= back_url_hidden_field_tag %>
<table>
<tr>
<td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
</tr>
<tr>
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
</tr>
<% if Setting.openid? %>
<tr>
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
</tr>
<% end %>
<tr>
<td></td>
<td align="left">
<% if Setting.autologin? %>
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
<% end %>
</td>
</tr>
<tr>
<td align="left">
<% if Setting.lost_password? %>
<%= link_to l(:label_password_lost), lost_password_path %>
<% end %>
</td>
<td align="right">
<input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/>
</td>
</tr>
</table>
2013-08-01 10:33:49 +08:00
<% end %>
</div>
<%= call_hook :view_account_login_bottom %>
<% if params[:username].present? %>
<%= javascript_tag "$('#password').focus();" %>
<% else %>
<%= javascript_tag "$('#username').focus();" %>
<% end %>
</td></tr>
2013-08-12 10:25:23 +08:00
<tr><td>
2013-08-01 10:33:49 +08:00
<table width="600" align="center" style="padding-top: 120px" cellspacing="0" cellpadding="0" >
2013-08-12 10:25:23 +08:00
<tr><td width="200" bgcolor="#00adee"><img src="/images/welcome/1.png" width="200" height="200"/></td>
<td width="200" bgcolor="#54c8f3"><img src="/images/welcome/2.png" width="200" height="200"/></td>
<td width="200" bgcolor="#93c5d8"><img src="/images/welcome/3.png" width="200" height="200"/></td>
</tr>
<tr height="50"><td align="center">
<p><%=link_to "发布需求",home_path %></p>
</td><td align="center">
<p><%=link_to "发现开源",home_path %></p>
</td><td align="center">
<p><%=link_to "创建项目",:controller=>'projects',:action=>'index' %></p>
</td></tr>
2013-08-01 10:33:49 +08:00
</table></td>
</tr>
</table>
2013-08-12 10:25:23 +08:00
</div>
2013-08-10 19:58:36 +08:00
2013-08-12 10:25:23 +08:00
<div class="table_" style="height:230px;">
2013-08-10 19:58:36 +08:00
<div class="welcone_left">
2013-08-12 10:25:23 +08:00
<table width="240px">
<tr><td><span class="font_welcome_trustie">Trustieforge</span><span class="">是一个社交化的项目管理、软件开发和众包平台。</span></td></tr>
<tr><td class="font_lighter_trustie">Trustieforge is a socialized collaboration platform for project management,
software development and software crowdsourcing.</td></tr>
</table>
</div>
<div >
<table>
<tr><td align="left">
<%= call_hook :view_account_login_top %>
<div id="login-form_new">
<%= form_tag(signin_path) do %>
<%= back_url_hidden_field_tag %>
<% unless User.current.logged? %>
<table class="welcone_right">
<tr>
<td align="right"><label for="username">用户:</label></td>
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
</tr>
<tr>
<td align="right"><label for="password">密码:</label></td>
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
</tr>
<% if Setting.openid? %>
<tr>
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
</tr>
<% end %>
<tr>
<td></td>
<td align="left">
<% if Setting.autologin? %>
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
<% end %>
</td>
</tr>
<tr>
<td align="left">
<% if Setting.lost_password? %>
<%= link_to l(:label_password_lost), lost_password_path %>
<% end %>
</td>
<td align="right">
<input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/>
</td>
</tr>
</table>
<% end %>
2013-08-10 19:58:36 +08:00
<% end %>
</div>
<%= call_hook :view_account_login_bottom %>
<% if params[:username].present? %>
<%= javascript_tag "$('#password').focus();" %>
<% else %>
<%= javascript_tag "$('#username').focus();" %>
<% end %>
</td></tr>
</table></div></div>
-->
<!--add by huang-->
<!--add by huang-->
2013-08-22 23:39:21 +08:00
<div style="height:280px;">
2013-08-12 10:25:23 +08:00
<div class="welcone_left">
2013-08-27 22:19:07 +08:00
<table width="388px">
2013-08-12 10:25:23 +08:00
<tr>
2013-08-27 22:19:07 +08:00
<td><span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %> </span><span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_description) %></span></td>
2013-08-12 10:25:23 +08:00
</tr>
2013-08-22 22:39:35 +08:00
<!-- <tr>
2013-08-16 20:30:27 +08:00
<td class="font_welcome_Edescription">Trustie forge,a socialized collaboration platform for project management,software development and software crowdsourcing for creative university students and entrepreneurs.</td>
2013-08-22 22:39:35 +08:00
</tr> -->
2013-08-12 10:25:23 +08:00
</table>
</div>
2013-08-10 19:58:36 +08:00
<table>
2013-08-03 22:22:17 +08:00
<tr>
2013-08-12 10:25:23 +08:00
<td> <%= call_hook :view_account_login_top %>
<div id="login-form_new">
<%= form_tag(signin_path) do %>
<%= back_url_hidden_field_tag %>
<% unless User.current.logged? %> <!--modified by young-->
<table>
<tr>
<td align="right"><label for="username"><%= l(:label_username) %></label></td>
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
</tr>
<tr>
<td align="right"><label for="password"><%= l(:label_password) %></label></td>
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
</tr>
<% if Setting.openid? %>
<tr>
<td align="right"><label for="openid_url"><%= l(:field_identity_url)%></label></td>
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
</tr>
<% end %>
<tr>
<td></td>
<td align="left"> <% if Setting.autologin? %> <label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label> <% end %> </td>
</tr>
<tr>
<td align="left"> <% if Setting.lost_password? %>
<%= link_to l(:label_password_lost), lost_password_path %>
<% end %> </td>
<td align="right">
<input type="submit" name="login" value="<%= l(:button_login)%> »" tabindex="5"/>
</td>
</tr>
</table>
<% else %>
<div>
<!--info-->
<table width="200" border="0">
<tr>
2013-08-27 22:19:07 +08:00
<td colspan="2" class="font_welcome_Cdescription" ><%= l(:label_welcome) %> <strong class="font_small_watch" style=" word-wrap: break-word; word-break: break-all"><%=link_to User.current.lastname<<User.current.firstname, user_path(User.current) %></strong> <%= l(:label_join) %></td>
2013-08-09 11:14:53 +08:00
</tr>
2013-08-12 10:25:23 +08:00
<tr>
2013-08-12 23:57:00 +08:00
<td rowspan="2" align="left"><%=link_to image_tag(url_to_avatar(User.current), :class => 'avatar'), user_path(User.current) %></td>
<td><%= l(:label_user_watcher) %> (<strong class="font_small_watch"><%= link_to User.watched_by(User.current).count, user_path(User.current) %></strong>) 
2013-08-13 11:24:50 +08:00
<%= l(:label_user_fans) %>(<strong class="font_small_watch"><%=link_to User.current.watcher_users(User.current.id).count, user_path(User.current) %></strong>)</td>
2013-08-12 10:25:23 +08:00
</tr>
<tr>
<td><% unless User.current.memberships.empty? %>
2013-08-27 22:19:07 +08:00
<%= l(:label_welcome_participate) %> (<strong class="font_small_watch"><%= link_to User.current.memberships.count, {:controller => 'users', :action => 'user_projects', :id => User.current} %></strong>) <%= l(:label_welcome_participate_project)%>
<!-- <% for member in User.current.memberships %>
2013-08-12 10:25:23 +08:00
<%= link_to_project(member.project) %><%= (User.current.memberships.last == member) ? '' : ', ' %>
<% end %> --> <% end %></td>
2013-08-09 11:14:53 +08:00
</tr>
</table>
2013-08-12 10:25:23 +08:00
</div>
<% end %>
<% end %>
</div> <%= call_hook :view_account_login_bottom %>
<% if params[:username].present? %>
<%= javascript_tag "$('#password').focus();" %>
<% else %>
<%= javascript_tag "$('#username').focus();" %>
<% end %> </td>
</tr>
</table>
2013-08-04 10:56:56 +08:00
</div>
2013-08-12 10:25:23 +08:00
<!--model-->
2013-08-16 22:53:28 +08:00
<!-- fq -->
<script type="text/javascript" language="javascript">
function clearInfo(id, content) {
var text = $('#' + id);
if (text.val() == content) {
$('#' + id).val('');
}
}
function showInfo(id, content) {
var text = $('#' + id);
if (text.val() == '') {
$('#' + id).val(content);
}
}
</script>
<!-- end -->
2013-08-12 10:25:23 +08:00
<div>
2013-08-22 23:39:21 +08:00
<table width="700" border="0" align="center" style="padding-top: 0px">
2013-08-17 10:45:14 +08:00
<tr><td colspan="5" align="center" style="padding-bottom: 10px; font-size: 18px; font-color: #5c5c5c ; font-family: 微软雅黑"><%= l(:label_welcome_leave_message) %> <strong><%= toggle_link l(:label_welcome_click_me), 'put-bid-form', {:focus => 'new_form_project_message'} %></strong></td></tr>
2013-08-16 22:53:28 +08:00
<tr><td colspan="5" align="center" ><div class="homepage_underline"></div></td></tr>
<tr><td colspan="5" align="center">
<div id="put-bid-form" style="display: none">
<%= form_for('new_form', :method => :post,
:url => {:controller => 'words', :action => 'add_project_respond'}) do |f|%>
<table border="0" width="525px" align="center" >
<tr>
2013-08-19 20:09:43 +08:00
<td><%= f.text_area 'project_message', :rows => 3, :cols => 65, :value => "#{l(:label_welcome_my_respond)}", :onfocus => "clearInfo('new_form_project_message','#{l(:label_welcome_my_respond)}')", :onblur => "showInfo('new_form_project_message','#{l(:label_welcome_my_respond)}')", :style => "resize: none;", :class => 'noline'%></td>
2013-08-16 22:53:28 +08:00
</tr>
</table>
<table border="0" width="525px" align="center">
<tr>
2013-08-19 20:09:43 +08:00
<td align="right"> <%= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %></td>
2013-08-16 22:53:28 +08:00
</tr>
</table>
<% end %>
</div>
</td></tr>
2013-08-12 10:25:23 +08:00
<tr align="center">
<td><%= link_to image_tag("/images/welcome/1.png", weight:"190px", height:"190px"), :controller => 'projects', :action => 'index' %></td>
<td width="65"></td>
<td><%= link_to image_tag("/images/welcome/2.png", weight:"190px", height:"190px"), :controller => 'bids', :action => 'index' %></td>
<td width="65"></td>
<td><%= link_to image_tag("/images/welcome/3.png", weight:"190px", height:"190px") %></td>
2013-08-09 11:14:53 +08:00
2013-08-12 10:25:23 +08:00
</tr>
<!-- <tr align="center">
<td><p class="font_welcome"><%= l(:label_create_new_projects) %></p></td>
<td> </td>
<td><p class="font_welcome"><%= l(:label_call_for_bids) %></p></td>
<td> </td>
<td><p class="font_welcome"><%= l(:label_create_course) %></p></td>
</tr> -->
<tr align="center" class="font_lighter2" >
<td width="190"><%= l(:label_create_new_projects_description) %></td>
<td width="65"></td>
<td width="190"><%= l(:label_call_for_bids_description) %></td>
<td width="65"></td>
<td width="190"><%= l(:label_create_course_description) %></td>
</tr>
<tr>
<td colspan="5"><div class="font_welcome_feature">
<div align="center">
<%= l(:label_features) %> <div class="user_underline3"></div>
</div>
</div></td>
2013-08-04 10:56:56 +08:00
</tr>
2013-08-12 10:25:23 +08:00
<tr class="font_welcome" align="center">
<td width="190"><%= image_tag("/images/welcome/discuss.png", weight:"30px", height: "26px") %><span style="vertical-align: top"><%= l(:label_board) %></span></td>
<td width="65"> </td>
<td width="190"><%= image_tag("/images/welcome/news.png", weight:"30px", height: "26px") %><span style="vertical-align: top"><%= l(:label_news) %></span></td>
<td width="65"> </td>
<td width="190"><%= image_tag("/images/welcome/boards.png", weight:"30px", height: "26px") %><span style="vertical-align: top"><%= l(:label_milestone) %></span></td>
</tr>
2013-08-11 15:27:34 +08:00
<tr align="center" class="font_lighter2">
2013-08-12 10:25:23 +08:00
<td width="190"><%= l(:label_board_description) %></td>
<td width="65"></td>
<td width="190"><%= l(:label_news_description) %></td>
<td width="65"></td>
<td width="190"><%= l(:label_milestone_description) %></td>
</tr>
2013-08-16 22:53:28 +08:00
2013-08-12 10:25:23 +08:00
</table>
2013-08-01 10:33:49 +08:00
</div>
2013-08-09 11:14:53 +08:00
2013-08-12 10:25:23 +08:00
<div style="padding-top: 40px"></div>
2013-08-09 11:14:53 +08:00
2013-08-16 22:53:28 +08:00