Merge branch 'develop' of 10.0.47.245:/home/trustie2 into develop
Conflicts: app/models/journals_for_message_observer.rb
This commit is contained in:
commit
a3ef595099
|
@ -60,6 +60,12 @@ class MemosController < ApplicationController
|
||||||
@memo.update_attribute(:viewed_count, @memo.viewed_count.to_i + 1)
|
@memo.update_attribute(:viewed_count, @memo.viewed_count.to_i + 1)
|
||||||
|
|
||||||
page = params[:page]
|
page = params[:page]
|
||||||
|
if params[:r] && page.nil?
|
||||||
|
offset = @memo.children.where("#{Memo.table_name}.id < ?", params[:r].to_i).count
|
||||||
|
page = 1 + offset / pre_count
|
||||||
|
else
|
||||||
|
|
||||||
|
end
|
||||||
@reply_count = @memo.children.count
|
@reply_count = @memo.children.count
|
||||||
@reply_pages = Paginator.new @reply_count, pre_count, page
|
@reply_pages = Paginator.new @reply_count, pre_count, page
|
||||||
@replies = @memo.children.
|
@replies = @memo.children.
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Memo < ActiveRecord::Base
|
||||||
:description => :content,
|
:description => :content,
|
||||||
:author => :author,
|
:author => :author,
|
||||||
:type => Proc.new {|o| o.parent_id.nil? ? 'Memo' : 'Reply'},
|
:type => Proc.new {|o| o.parent_id.nil? ? 'Memo' : 'Reply'},
|
||||||
:url => Proc.new {|o| {:controller => 'memos', :action => 'show', :forum_id => o.forum_id}.merge(o.parent_id.nil? ? {:id => o.id} : {:id => o.parent_id, :anchor => "reply-#{o.id}"})}
|
:url => Proc.new {|o| {:controller => 'memos', :action => 'show', :forum_id => o.forum_id}.merge(o.parent_id.nil? ? {:id => o.id} : {:id => o.parent_id, :r => o.id, :anchor => "reply-#{o.id}"})}
|
||||||
acts_as_activity_provider :author_key => :author_id,
|
acts_as_activity_provider :author_key => :author_id,
|
||||||
:func => 'memos',
|
:func => 'memos',
|
||||||
:timestamp => 'created_at'
|
:timestamp => 'created_at'
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<%= form_tag(calls_path, :method => :get) do %>
|
<%= form_tag(calls_path, :method => :get) do %>
|
||||||
<table width="940px">
|
<table width="940px">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style="width: 220px; color: #15bccf""><%= l(:label_requirement_enterprise ) %></td>
|
<td class="info_font" style="width: 220px; color: #15bccf"><%= l(:label_requirement_enterprise ) %></td>
|
||||||
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
||||||
<td rowspan="2">
|
<td rowspan="2">
|
||||||
<% if User.current.logged? %>
|
<% if User.current.logged? %>
|
||||||
|
|
|
@ -47,11 +47,12 @@
|
||||||
<tbody> -->
|
<tbody> -->
|
||||||
<% @topics.each do |topic| %>
|
<% @topics.each do |topic| %>
|
||||||
<table class="content-text-list">
|
<table class="content-text-list">
|
||||||
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
||||||
<td>
|
<td>
|
||||||
<table width="640px" border="0">
|
<table width="640px" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" width="500px"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
<td valign="top" width="500px" class=" <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
||||||
<td align="right" rowspan="3"><table class="borad-count"><tr><td align="center" class="borad-count-digit"><%=link_to (topic.replies_count), board_message_path(@board, topic) %></td></tr>
|
<td align="right" rowspan="3"><table class="borad-count"><tr><td align="center" class="borad-count-digit"><%=link_to (topic.replies_count), board_message_path(@board, topic) %></td></tr>
|
||||||
<tr><td align="center">回答</td></tr>
|
<tr><td align="center">回答</td></tr>
|
||||||
</table></td>
|
</table></td>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<% if memos.any? %>
|
<% if memos.any? %>
|
||||||
<% memos.each do |topic| %>
|
<% memos.each do |topic| %>
|
||||||
<table class="content-text-list">
|
<table class="content-text-list">
|
||||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
<tr><td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
||||||
<td>
|
<td>
|
||||||
<table width="630px" border="0">
|
<table width="630px" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="actions" style="style="max-width:680px"">
|
<div class="actions" style="max-width:680px">
|
||||||
<p><%= f.text_field :subject, :required => true, :size => 95 %></p>
|
<p><%= f.text_field :subject, :required => true, :size => 95 %></p>
|
||||||
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
||||||
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script>
|
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
||||||
</p>
|
</p>
|
||||||
<%= f.submit :value => l(:label_memo_create) %>
|
<%= f.submit :value => l(:label_memo_create) %>
|
||||||
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-memo").hide(); return false;' %></p>
|
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-memo").hide(); return false;' %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -8,16 +8,6 @@
|
||||||
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||||
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||||
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
|
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
|
||||||
<!-- <div style="float: right; margin-top: 13px;">
|
|
||||||
<%= content_tag('div', "#{link_to(image_tag('/images/mes.png'), feedback_path(User.current))}".html_safe, :title => "留言") if User.current.logged? %>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div align="center" style="float: right; margin-right: -25px; margin-top: 6px; background: #ea7125; width: 12px;border-radius:7px; font-size: 8px; color: #fff; font-weight: bold">
|
|
||||||
<%= User.current.count_new_jour if User.current.logged? && User.current.count_new_jour != 0 %>
|
|
||||||
</div> -->
|
|
||||||
<!-- <%= content_tag('div', "#{}".html_safe, :id => 'loggedas')%> -->
|
|
||||||
<!-- 消息#{link_to((User.current.count_new_jour), feedback_path(User.current))} -->
|
|
||||||
<!-- <%= content_tag('div', "消息(#{User.current.journals_for_messages.count})".html_safe, :id => 'loggedas')%> -->
|
|
||||||
<!-- <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div style="border-top:solid 1px #C6E9F1;width:940px;margin-left:auto;margin-right:auto;margin-bottom: 0px;margin-top: -10px;"></div>
|
<div style="border-top:solid 1px #C6E9F1;width:940px;margin-left:auto;margin-right:auto;margin-bottom: 0px;margin-top: -10px;"></div>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<!--added by huang-->
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -14,7 +13,6 @@
|
||||||
<%= heads_for_theme %>
|
<%= heads_for_theme %>
|
||||||
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
|
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
|
||||||
<%= call_hook :view_layouts_base_html_head %>
|
<%= call_hook :view_layouts_base_html_head %>
|
||||||
<!-- page specific tags -->
|
|
||||||
<%= yield :header_tags -%>
|
<%= yield :header_tags -%>
|
||||||
</head>
|
</head>
|
||||||
<body class="<%= h body_css_classes %>">
|
<body class="<%= h body_css_classes %>">
|
||||||
|
@ -26,8 +24,8 @@
|
||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style="width: 240px; color: #15bccf"">软件项目托管社区</td>
|
<td class="info_font" style="width: 240px; color: #15bccf">软件项目托管社区</td>
|
||||||
<td style="width: 430px; color: #15bccf""><strong><%= l(:label_user_location) %> : </strong></td>
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
||||||
<td rowspan="2" width="250px">
|
<td rowspan="2" width="250px">
|
||||||
<div class="top-content-search">
|
<div class="top-content-search">
|
||||||
<%= form_tag(:controller => 'forums', :action => "search_memo", :id => params[:id], :method => :get) do %>
|
<%= form_tag(:controller => 'forums', :action => "search_memo", :id => params[:id], :method => :get) do %>
|
||||||
|
@ -39,9 +37,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left: 8px"><a><%= link_to "forge.trustie.net/forums", forums_path %></a></td>
|
<td style="padding-left: 8px"><%= link_to "forge.trustie.net/forums", forums_path %></td>
|
||||||
<td><p
|
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to '公共贴吧', :controller => 'forums', :action => 'index' %> > <%=link_to @forum.name, forum_path(@forum) %></p></td>
|
||||||
class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to '公共贴吧', :controller => 'forums', :action => 'index' %> > <%=link_to @forum.name, forum_path(@forum) %></p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,24 +46,27 @@
|
||||||
<!--informations-->
|
<!--informations-->
|
||||||
<div class="sidebar-forums">
|
<div class="sidebar-forums">
|
||||||
<div class="forums-line">
|
<div class="forums-line">
|
||||||
<div class="forums-title"><%= @forum.name %></div>
|
<div class="forums-title"><%= @forum.name %></div>
|
||||||
<div class="forums-description"><%= textilizable @forum.description %></div>
|
<div class="forums-description"><%= textilizable @forum.description %></div>
|
||||||
</div>
|
</div>
|
||||||
<!--informations-->
|
<!--informations-->
|
||||||
<div class="formus-first-title" >创建人信息</div>
|
<div class="formus-first-title" >创建人信息</div>
|
||||||
<div class="forums-info">
|
<div class="forums-info">
|
||||||
<div style="padding-top: 20px" >
|
<div style="padding-top: 20px" >
|
||||||
<span class="forums-avatar-left"><%= image_tag(url_to_avatar(@forum.creator), :class =>'vatar-size') %></span>
|
<span class="forums-avatar-left"><%= image_tag(url_to_avatar(@forum.creator), :class =>'vatar-size') %></span>
|
||||||
<span class="forums-avatar-right"><%=link_to @forum.creator.show_name, user_path(@forum.creator) %>
|
<span class="forums-avatar-right">
|
||||||
<div>
|
<%=link_to @forum.creator.show_name, user_path(@forum.creator) %>
|
||||||
<%= link_to l(:label_user_watcher)+"("+User.watched_by(@forum.creator.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist", :id => @forum.creator.id %>
|
<div>
|
||||||
<%= link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+@forum.creator.watcher_users(@forum.creator.id).count.to_s+")", :controller=>"users", :action=>"user_fanslist", :id => @forum.creator.id %></div></span>
|
<%= link_to l(:label_user_watcher)+"("+User.watched_by(@forum.creator.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist", :id => @forum.creator.id %>
|
||||||
</div>
|
<%= link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+@forum.creator.watcher_users(@forum.creator.id).count.to_s+")", :controller=>"users", :action=>"user_fanslist", :id => @forum.creator.id %>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--tags-->
|
<!--tags-->
|
||||||
<% if User.current.logged? || User.current.admin? %>
|
<% if User.current.logged? || User.current.admin? %>
|
||||||
<div class="forums-tags"><%= render :partial => 'tags/tag', :locals => {:obj => @forum,:object_flag => "5"}%></div>
|
<div class="forums-tags"><%= render :partial => 'tags/tag', :locals => {:obj => @forum,:object_flag => "5"}%></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<%= render :partial => 'layouts/base_footer'%>
|
<%= render :partial => 'layouts/base_footer'%>
|
||||||
<%= debug(params) if Rails.env.development? %>
|
<%= debug(params) if Rails.env.development? %>
|
||||||
</div>
|
</div>
|
||||||
<div id="ajax-indicator" style="display:none;">
|
<div id="ajax-indicator" style="display:none;">
|
||||||
<span><%= l(:label_loading) %></span>
|
<span><%= l(:label_loading) %></span>
|
||||||
|
@ -86,7 +86,8 @@
|
||||||
<div id="ajax-modal" style="display:none;"></div>
|
<div id="ajax-modal" style="display:none;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= call_hook :view_layouts_base_body_bottom %>
|
</div>
|
||||||
|
<%= call_hook :view_layouts_base_body_bottom %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -22,90 +22,82 @@
|
||||||
<div id="wrapper3">
|
<div id="wrapper3">
|
||||||
<%=render :partial => 'layouts/base_header'%>
|
<%=render :partial => 'layouts/base_header'%>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
|
<div class="top-content">
|
||||||
<!-- added by bai -->
|
|
||||||
<div class="top-content">
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style="width: 240px; color: #15bccf"">软件项目托管社区</td>
|
<td class="info_font" style="width: 240px; color: #15bccf">软件项目托管社区</td>
|
||||||
<td style="width: 430px; color: #15bccf""><strong><%= l(:label_user_location) %> : </strong></td>
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
||||||
<td rowspan="2" width="250px">
|
<td rowspan="2" width="250px">
|
||||||
<div class="top-content-search">
|
<div class="top-content-search">
|
||||||
<%= form_tag(:controller => 'projects', :action => "search", :method => :get) do %>
|
<%= form_tag(:controller => 'projects', :action => "search", :method => :get) do %>
|
||||||
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
||||||
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
||||||
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left: 8px"><a><%= link_to "forge.trustie.net/projects", :controller => 'projects', :action => 'index', :project_type => 0 %></a></td>
|
<td style="padding-left: 8px"><%= link_to "forge.trustie.net/projects", :controller => 'projects', :action => 'index', :project_type => 0 %></td>
|
||||||
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_project_deposit),:controller => 'projects', :action => 'index', :project_type => 0 %> > <%=link_to @project, project_path(@project) %></p></td>
|
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_project_deposit),:controller => 'projects', :action => 'index', :project_type => 0 %> > <%=link_to @project, project_path(@project) %></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- end -->
|
|
||||||
<!--project page-->
|
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<div class="spaceleft">
|
<div class="spaceleft">
|
||||||
<!--informations-->
|
|
||||||
<div class="inf_user_image">
|
<div class="inf_user_image">
|
||||||
<% @project = Project.find_by_id(@project.id)%>
|
<% @project = Project.find_by_id(@project.id)%>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>
|
<td><%= image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="info-course">
|
<div class="info-course">
|
||||||
<%= @project.name %>
|
<%= @project.name %>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left: 20px;">
|
<div style="margin-left: 20px;">
|
||||||
<% unless User.current.member_of? @project %>
|
<% unless User.current.member_of? @project %>
|
||||||
<span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %>
|
<span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div></td>
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--parameter -->
|
|
||||||
<div class="user_fans">
|
<div class="user_fans">
|
||||||
|
|
||||||
<table width="240" border="0">
|
<table width="240" border="0">
|
||||||
<tr align="center" width="80px">
|
<tr align="center" width="80px">
|
||||||
<% files_count = @project.attachments.count %>
|
<% files_count = @project.attachments.count %>
|
||||||
<% @project.versions.each do |version| %>
|
<% @project.versions.each do |version| %>
|
||||||
<% files_count += version.attachments.count %>
|
<% files_count += version.attachments.count %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<td class="font_index"><%=link_to "#{@project.members.count}", project_member_path(@project) %></td>
|
<td class="font_index"><%=link_to "#{@project.members.count}", project_member_path(@project) %></td>
|
||||||
<td class="font_index"><%=link_to @project.watcher_users.count, :controller=>"projects", :action=>"watcherlist" %></td>
|
<td class="font_index"><%=link_to @project.watcher_users.count, :controller=>"projects", :action=>"watcherlist" %></td>
|
||||||
<td class="font_index"><%=link_to "#{@project.issues.count}", project_issues_path(@project) %></td>
|
<td class="font_index"><%=link_to "#{@project.issues.count}", project_issues_path(@project) %></td>
|
||||||
<!-- <td class="font_index"><%=link_to files_count, project_files_path(@project) %></td> -->
|
<!-- <td class="font_index"><%=link_to files_count, project_files_path(@project) %></td> -->
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr class="font_aram">
|
<tr class="font_aram">
|
||||||
<td align="center" width="70px"> <%= l(:label_member) %></td>
|
<td align="center" width="70px"> <%= l(:label_member) %></td>
|
||||||
<td align="center" width="100px"><%= l(:label_user_watchered) %></td>
|
<td align="center" width="100px"><%= l(:label_user_watchered) %></td>
|
||||||
<td align="center" width="70px"> <%= l(:label_project_issues) %></td>
|
<td align="center" width="70px"> <%= l(:label_project_issues) %></td>
|
||||||
<!-- <td align="center" width="58px"><%= l(:label_attachment) %></td> -->
|
<!-- <td align="center" width="58px"><%= l(:label_attachment) %></td> -->
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--description-->
|
|
||||||
<div class="inf_user_context">
|
<div class="inf_user_context">
|
||||||
<div class="font_title_left">
|
<div class="font_title_left">
|
||||||
<%= l(:label_project_overview) %>
|
<%= l(:label_project_overview) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="padding-bottom: 8px">
|
<div style="padding-bottom: 8px">
|
||||||
<div class="font_lighter_sidebar">
|
<div class="font_lighter_sidebar">
|
||||||
|
|
||||||
<%= textilizable @project.description %>
|
<%= textilizable @project.description %>
|
||||||
</div>
|
</div>
|
||||||
<div class="created_on_project">
|
<div class="created_on_project">
|
||||||
|
@ -114,21 +106,21 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
</div>
|
</div>
|
||||||
<!--tags-->
|
<!--tags-->
|
||||||
|
|
||||||
<div class="user_fans">
|
<div class="user_fans">
|
||||||
<!-- added by william -for tag -->
|
<!-- added by william -for tag -->
|
||||||
<div class="user_tags">
|
<div class="user_tags">
|
||||||
<div id="tags">
|
<div id="tags">
|
||||||
<%= render :partial => 'tags/tag', :locals => {:obj => @project,:object_flag => "2"}%>
|
<%= render :partial => 'tags/tag', :locals => {:obj => @project,:object_flag => "2"}%>
|
||||||
</div></div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!--tool-->
|
<!--tool-->
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
<div class="tool">
|
<div class="tool">
|
||||||
<%= render 'projects/tools_expand' %>
|
<%= render 'projects/tools_expand' %>
|
||||||
</div>
|
</div>
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -141,10 +133,9 @@
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
<%= call_hook :view_layouts_base_content %>
|
<%= call_hook :view_layouts_base_content %>
|
||||||
<div style="clear:both;"></div>
|
<div style="clear:both;"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<%= render :partial => 'layouts/base_footer'%>
|
<%= render :partial => 'layouts/base_footer'%>
|
||||||
<%= debug(params) if Rails.env.development? %>
|
<%= debug(params) if Rails.env.development? %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ajax-indicator" style="display:none;">
|
<div id="ajax-indicator" style="display:none;">
|
||||||
|
@ -154,6 +145,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= call_hook :view_layouts_base_body_bottom %>
|
<%= call_hook :view_layouts_base_body_bottom %>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -1,36 +1,3 @@
|
||||||
<!-- <%= board_breadcrumb(@message) %>
|
|
||||||
|
|
||||||
<div class="contextual">
|
|
||||||
<%= watcher_link(@topic, User.current) %>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_quote),
|
|
||||||
{:action => 'quote', :id => @topic},
|
|
||||||
:remote => true,
|
|
||||||
:method => 'get',
|
|
||||||
:class => 'icon icon-comment',
|
|
||||||
:remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_edit),
|
|
||||||
{:action => 'edit', :id => @topic},
|
|
||||||
:class => 'icon icon-edit'
|
|
||||||
) if @message.editable_by?(User.current) %>
|
|
||||||
<%= link_to(
|
|
||||||
l(:button_delete),
|
|
||||||
{:action => 'destroy', :id => @topic},
|
|
||||||
:method => :post,
|
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
|
||||||
:class => 'icon icon-del'
|
|
||||||
) if @message.destroyable_by?(User.current) %>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<!-- <div class="borad-title"><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></div>
|
|
||||||
|
|
||||||
<div class="borad-topic-count-message">
|
|
||||||
<%= textilizable(@topic, :content) %>
|
|
||||||
<%= authoring @topic.created_on, @topic.author %>
|
|
||||||
<%= link_to_attachments @topic, :author => false %>
|
|
||||||
</div>
|
|
||||||
<br /> -->
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
/** {
|
/** {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
|
@ -117,7 +84,7 @@
|
||||||
<p class=""><%=link_to @topic.author, user_path(@topic.author) %></p>
|
<p class=""><%=link_to @topic.author, user_path(@topic.author) %></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="memo-section">
|
<div class="memo-section">
|
||||||
<div class="memo-title"><%= label_tag l(:field_subject) %>: <%=link_to @topic.subject, project_boards_path(@topic.project) %></div>
|
<div class="memo-title <%= @topic.sticky? ? 'sticky' : '' %> <%= @topic.locked? ? 'locked' : '' %>"><%= label_tag l(:field_subject) %>: <%=link_to @topic.subject, project_boards_path(@topic.project) %></div>
|
||||||
<div class="memo-content"><%= textilizable(@topic, :content) %>
|
<div class="memo-content"><%= textilizable(@topic, :content) %>
|
||||||
<%= link_to_attachments @topic, :author => false %>
|
<%= link_to_attachments @topic, :author => false %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -161,14 +128,6 @@
|
||||||
<tr><td class="font_lighter" style="float: right"><%= authoring message.created_on, message.author %></td></tr>
|
<tr><td class="font_lighter" style="float: right"><%= authoring message.created_on, message.author %></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!-- <h4>
|
|
||||||
<%= avatar(message.author, :size => "24") %>
|
|
||||||
<%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
|
|
||||||
-
|
|
||||||
<%= authoring message.created_on, message.author %>
|
|
||||||
</h4>
|
|
||||||
<div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
||||||
<%= link_to_attachments message, :author => false %> -->
|
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></div>
|
<div class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></div>
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
<% @newss.each do |news| %>
|
<% @newss.each do |news| %>
|
||||||
|
|
||||||
<table class="content-text-list">
|
<table class="content-text-list">
|
||||||
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(news.author), :class => "avatar"), user_path(news.author) %></td>
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(news.author), :class => "avatar"), user_path(news.author) %></td>
|
||||||
<td>
|
<td>
|
||||||
<table width="580px" border="0">
|
<table width="580px" border="0">
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
<%= form_tag({:controller => 'projects',
|
<%= form_tag({:controller => 'projects', :action => 'project_respond'}) do %>
|
||||||
:action => 'project_respond'}) do %>
|
|
||||||
<%= text_area_tag 'project_respond', "", :class => 'noline', :required => true, :style => "resize: none;", :rows => 6, :placeholder => l(:label_projects_feedback_respond_content) %>
|
<%= text_area_tag 'project_respond', "", :class => 'noline', :required => true, :style => "resize: none;", :rows => 6, :placeholder => l(:label_projects_feedback_respond_content) %>
|
||||||
|
|
||||||
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
||||||
<%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "bid_btn"%> </td>
|
<%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "bid_btn"%>
|
||||||
|
|
||||||
<%end%>
|
<%end%>
|
||||||
|
|
|
@ -11,10 +11,12 @@
|
||||||
</table>
|
</table>
|
||||||
<table border="0" width="525px" align="center">
|
<table border="0" width="525px" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn" %></td>
|
<td align="right">
|
||||||
|
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn" %>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @jour.size >0 %>
|
<% if @jour.size >0 %>
|
||||||
|
|
||||||
|
@ -29,9 +31,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" width="580px" >
|
<td colspan="2" width="580px" >
|
||||||
<p class="font_description">
|
<div class="font_description">
|
||||||
<%= textilizable journal.notes%>
|
<%= textilizable journal.notes%>
|
||||||
</p></td>
|
</div></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><span class="font_lighter"> <%= l :label_update_time %>: <%= format_time journal.created_on %></span></td>
|
<td align="left"><span class="font_lighter"> <%= l :label_update_time %>: <%= format_time journal.created_on %></span></td>
|
||||||
|
@ -55,5 +57,5 @@
|
||||||
<div class="pagination" style="float:left;">
|
<div class="pagination" style="float:left;">
|
||||||
<ul>
|
<ul>
|
||||||
<%= pagination_links_full @feedback_pages %>
|
<%= pagination_links_full @feedback_pages %>
|
||||||
<ul>
|
</ul>
|
||||||
</div>
|
</div>
|
|
@ -12,7 +12,7 @@
|
||||||
<div class="pagination" style="float:left;">
|
<div class="pagination" style="float:left;">
|
||||||
<ul>
|
<ul>
|
||||||
<%= pagination_links_full @feedback_pages %>
|
<%= pagination_links_full @feedback_pages %>
|
||||||
<ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,83 +1,71 @@
|
||||||
<!--add by huang-->
|
<div style="height:200px; margin:0 auto;">
|
||||||
<div style="height:220px;">
|
<div class="welcome_left" style="max-width: 380px; float: left; margin: 20px 0px 0px 60px;">
|
||||||
<div class="welcome_left" style="margin-top: 60px">
|
<p>
|
||||||
<table width="388px">
|
<span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %> </span><span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_description) %></span>
|
||||||
<tr><td><span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %> </span><span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_description) %></span></td></tr>
|
</p>
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<table>
|
<div style="display:inline;">
|
||||||
<tr>
|
<%= call_hook :view_account_login_top %>
|
||||||
<td> <%= call_hook :view_account_login_top %>
|
<div id="login-form_new" style="margin-left: 510px;">
|
||||||
<div id="login-form_new" style="margin-top: -20px;">
|
<%= form_tag(signin_path) do %>
|
||||||
<%= form_tag(signin_path) do %>
|
<%= back_url_hidden_field_tag if is_logout? %>
|
||||||
<%= back_url_hidden_field_tag if is_logout? %>
|
<% unless User.current.logged? %>
|
||||||
<% unless User.current.logged? %> <!--modified by young-->
|
<table>
|
||||||
<table >
|
<tr>
|
||||||
<tr>
|
<td align="right"><label for="username"><%= l(:label_username) %></label></td>
|
||||||
<td align="right"><label for="username"><%= l(:label_username) %></label></td>
|
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></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>
|
||||||
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><label for="password"><%= l(:label_password) %></label></td>
|
<td align="left">
|
||||||
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
|
<% if Setting.lost_password? %>
|
||||||
</tr>
|
<%= link_to l(:label_password_lost), lost_password_path %>
|
||||||
<% if Setting.openid? %>
|
<% end %>
|
||||||
<tr>
|
</td>
|
||||||
<td align="right"><label for="openid_url"><%= l(:field_identity_url)%></label></td>
|
<td align="right">
|
||||||
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
|
<input type="submit" name="login" value="<%= l(:button_login)%> »" tabindex="5"/>
|
||||||
</tr>
|
<!-- Kyrie -->
|
||||||
<% end %>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td></td>
|
</table>
|
||||||
<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>
|
<% else %>
|
||||||
</tr>
|
<div>
|
||||||
<tr>
|
<table width="200" border="0">
|
||||||
<td align="left"> <% if Setting.lost_password? %>
|
<tr>
|
||||||
<%= link_to l(:label_password_lost), lost_password_path %>
|
<td colspan="2" align="center" 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>
|
||||||
<% end %> </td>
|
</tr>
|
||||||
<td align="right">
|
<tr>
|
||||||
<input type="submit" name="login" value="<%= l(:button_login)%> »" tabindex="5"/>
|
<td rowspan="2" style="padding-left: 20px"><%= image_tag(url_to_avatar(User.current), :class => 'avatar') %></td>
|
||||||
</td>
|
<td><strong class="font_small_watch"><%= link_to l(:label_user_watcher)+"("+User.watched_by(User.current).count.to_s+")", user_path(User.current) %></strong> 
|
||||||
</tr>
|
<strong class="font_small_watch"><%=link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+User.current.watcher_users(User.current.id).count.to_s+")", user_path(User.current) %></strong></td>
|
||||||
</table>
|
</tr>
|
||||||
<% else %>
|
<tr>
|
||||||
<div>
|
<td align="left"><% unless User.current.memberships.empty? %>
|
||||||
<!--info-->
|
<%= l(:label_x_welcome_participate, :count => User.current.memberships.count) %> <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)%>
|
||||||
<table width="200" border="0">
|
<% end %>
|
||||||
<tr>
|
</td>
|
||||||
<td colspan="2" align="center" 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>
|
</tr>
|
||||||
</tr>
|
</table>
|
||||||
<tr>
|
</div>
|
||||||
|
|
||||||
<td rowspan="2" style="padding-left: 20px"><%= image_tag(url_to_avatar(User.current), :class => 'avatar') %></td>
|
|
||||||
<td><strong class="font_small_watch"><%= link_to l(:label_user_watcher)+"("+User.watched_by(User.current).count.to_s+")", user_path(User.current) %></strong> 
|
|
||||||
<strong class="font_small_watch"><%=link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+User.current.watcher_users(User.current.id).count.to_s+")", user_path(User.current) %></strong></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left"><% unless User.current.memberships.empty? %>
|
|
||||||
<%= l(:label_x_welcome_participate, :count => User.current.memberships.count) %> <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)%>
|
|
||||||
<% end %>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<!-- end -->
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div> <%= call_hook :view_account_login_bottom %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<%= call_hook :view_account_login_bottom %>
|
||||||
|
|
||||||
<% if params[:username].present? %>
|
<% if params[:username].present? %>
|
||||||
<%= javascript_tag "$('#password').focus();" %>
|
<%= javascript_tag "$('#password').focus();" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= javascript_tag "$('#username').focus();" %>
|
<%= javascript_tag "$('#username').focus();" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<!--model-->
|
</div>
|
||||||
|
|
||||||
<!-- fq -->
|
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
function clearInfo(id, content) {
|
function clearInfo(id, content) {
|
||||||
|
@ -93,107 +81,6 @@
|
||||||
$('#' + id).val(content);
|
$('#' + id).val(content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// $(function(){
|
|
||||||
// var x = 10;
|
|
||||||
// var y = 20;
|
|
||||||
// $("span.tooltip").mouseover(function(e){
|
|
||||||
// this.myTitle = this.title;
|
|
||||||
// this.title = "";
|
|
||||||
// var tooltip = "<div id='tooltip' style=' position: absolute;'><div class='arrow bottom right'></div>" + this.myTitle + "</div>";
|
|
||||||
// $("body").append(tooltip);
|
|
||||||
// $("#tooltip")
|
|
||||||
// .css({
|
|
||||||
// "top": (e.pageY + y) + "px",
|
|
||||||
// "left": (e.pageX + x) + "px"
|
|
||||||
// }).show("fast");
|
|
||||||
// }).mouseout(function(){
|
|
||||||
// this.title = this.myTitle;
|
|
||||||
// $("#tooltip").remove();
|
|
||||||
// }).mousemove(function(e){
|
|
||||||
// $("#tooltip")
|
|
||||||
// .css({
|
|
||||||
// "top": (e.pageY + y) + "px",
|
|
||||||
// "left": (e.pageX + x) + "px"
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// })
|
|
||||||
|
|
||||||
// $('li').mouseover(function(){
|
|
||||||
// var id=$(this).attr('id');
|
|
||||||
// alert(id);
|
|
||||||
// });
|
|
||||||
// $(function(){
|
|
||||||
// $(".welcome-box-list-new").hide();
|
|
||||||
// $("#hot-topic").bind("click", function(){
|
|
||||||
// $(".welcome-box-list-new").hide();
|
|
||||||
// $(".welcome-box-list").show();
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #717171",
|
|
||||||
// "border-left": "1px solid #717171",
|
|
||||||
// "border-bottom": "1px solid #FFFFFF",
|
|
||||||
// "border-right": "1px solid #FFFFFF"
|
|
||||||
// });
|
|
||||||
// $("#new-topic").css({
|
|
||||||
// "border-top": "1px solid #FFFFFF",
|
|
||||||
// "border-left": "1px solid #FFFFFF",
|
|
||||||
// "border-bottom": "1px solid #717171",
|
|
||||||
// "border-right": "1px solid #717171"
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// $("#new-topic").bind("click", function(){
|
|
||||||
// $(".welcome-box-list").hide();
|
|
||||||
// $(".welcome-box-list-new").show();
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #717171",
|
|
||||||
// "border-left": "1px solid #717171",
|
|
||||||
// "border-bottom": "1px solid #FFFFFF",
|
|
||||||
// "border-right": "1px solid #FFFFFF"
|
|
||||||
// });
|
|
||||||
// $("#hot-topic").css({
|
|
||||||
// "border-top": "1px solid #FFFFFF",
|
|
||||||
// "border-left": "1px solid #FFFFFF",
|
|
||||||
// "border-bottom": "1px solid #717171",
|
|
||||||
// "border-right": "1px solid #717171"
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// });
|
|
||||||
// // $("#panel h5.head").bind("mouseout", function(){
|
|
||||||
// // $(this).next().fadeOut();
|
|
||||||
// // });
|
|
||||||
// })
|
|
||||||
// $(function(){
|
|
||||||
// $("#new-topic").hover(function(){
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #717171",
|
|
||||||
// "border-left": "1px solid #717171",
|
|
||||||
// "border-bottom": "1px solid #FFFFFF",
|
|
||||||
// "border-right": "1px solid #FFFFFF"
|
|
||||||
// }),
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #FFFFFF",
|
|
||||||
// "border-left": "1px solid #FFFFFF",
|
|
||||||
// "border-bottom": "1px solid #717171",
|
|
||||||
// "border-right": "1px solid #717171"
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// $("#hot-topic").hover(function(){
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #717171",
|
|
||||||
// "border-left": "1px solid #717171",
|
|
||||||
// "border-bottom": "1px solid #FFFFFF",
|
|
||||||
// "border-right": "1px solid #FFFFFF"
|
|
||||||
// }),
|
|
||||||
// $(this).css({
|
|
||||||
// "border-top": "1px solid #FFFFFF",
|
|
||||||
// "border-left": "1px solid #FFFFFF",
|
|
||||||
// "border-bottom": "1px solid #717171",
|
|
||||||
// "border-right": "1px solid #717171"
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// })
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.forum-topic li{
|
.forum-topic li{
|
||||||
|
@ -201,90 +88,63 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<!-- info display block -->
|
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
<div class="body_resize">
|
<div class="body_resize">
|
||||||
|
|
||||||
<div class="left" style="float: left; height: 445px; width: 50%; margin-left: 30px;">
|
<div class="left" style="float: left; height: 445px; width: 50%; margin-left: 30px;">
|
||||||
<ul class="welcome-message-list" style="width: 90%; ">
|
<ul class="welcome-message-list" style="width: 90%; ">
|
||||||
<div class="forum-topic" style="height: 25px;">
|
<div class="forum-topic" style="height: 25px;">
|
||||||
<h3 style="color: rgb(21, 188, 207);margin-left: 8px;"><strong>贴吧动态</strong></h3>
|
<h3 style="color: rgb(21, 188, 207);margin-left: 8px;"><strong>贴吧动态</strong></h3>
|
||||||
<!-- <ul class="inner-content">
|
|
||||||
<li>
|
|
||||||
<a href="#" id="hot-topic">最热帖子</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#" id="new-topic">最新帖子</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#">更多主题</a>
|
|
||||||
</li>
|
|
||||||
</ul> -->
|
|
||||||
<span style="margin-top: -30px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>
|
|
||||||
</div>
|
|
||||||
<!-- <div class="welcome-box-list">
|
|
||||||
<% find_hot_forum_topics.each do |topic|%>
|
|
||||||
<li class="message-brief-intro" style="min-height: 25px;">
|
|
||||||
<div style="display: inline-block; width: 100%;">
|
|
||||||
<span style="color:gray; display: inline-block; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">
|
|
||||||
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;"%>
|
|
||||||
</span>
|
|
||||||
<br>
|
|
||||||
<span style="margin-left: 20px; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;"><%=l(:field_updated_on)%><%=time_tag_welcome(topic_last_time topic)%>前</span>
|
|
||||||
<span style="margin-left: 5px; color: rgb(172, 174, 177) !important; white-space: nowrap;">
|
|
||||||
由<%= link_to topic.author, user_path(topic.author), :style => "font-size: 9pt !important; color: rgb(17, 102, 173);"%>发表
|
|
||||||
</span>
|
|
||||||
<span style="float: right; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;">回复(<%= link_to topic.replies_count, topic.event_url %>)</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div class="welcome-box-list-new">
|
|
||||||
<% find_new_forum_topics(8).each do |topic|%>
|
|
||||||
<li class="message-brief-intro" style="min-height: 25px;padding-bottom:3px;">
|
|
||||||
<div style="display: inline-block; width: 100%;">
|
|
||||||
<span style="color:gray; display: inline-block; margin-bottom:6px; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">
|
|
||||||
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;"%>
|
|
||||||
</span>
|
|
||||||
<br>
|
|
||||||
<span style="margin-left: 24px; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;"><!-- <%=l(:field_updated_on)%> --><%=time_tag_welcome(topic_last_time topic)%>前</span>
|
|
||||||
<span style="margin-left: 8px; margin-bottom: 0px; color: rgb(172, 174, 177) !important; white-space: nowrap;">
|
|
||||||
由 <%= link_to topic.author ? topic.author : 'Anonymous', user_path(topic.author_id), :style => "font-size: 9pt !important; color: rgb(17, 102, 173);"%> 发表
|
|
||||||
</span>
|
|
||||||
<span style="float: right; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;">回复(<%= link_to topic.replies_count, topic.event_url %>)</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="right" style="float: right; margin-right: 10px; height: 445px; width: 45%; ">
|
<span style="margin-top: -30px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>
|
||||||
<ul class="user-welcome-message-list" style="width: 94%; margin-top: 0px;">
|
</div>
|
||||||
<h3 style="margin-left: -5px; color: rgb(21, 188, 207)"><strong>用户动态</strong></h3>
|
|
||||||
<span style="margin-top: -30px;float: right; display: block;"><%= link_to "更多>>", { :controller => 'users', :action => 'index'} %></span>
|
<div class="welcome-box-list-new">
|
||||||
<div class="user-message-box-list">
|
<% find_new_forum_topics(8).each do |topic|%>
|
||||||
<% find_all_activities.each do |event| %>
|
<li class="message-brief-intro" style="min-height: 25px;padding-bottom:3px;">
|
||||||
<li style="display: block;height:60px; padding-bottom: 4px;">
|
<div style="display: inline-block; width: 100%;">
|
||||||
<div class="inner-right" style="float: left; height: 100%; ">
|
<span style="color:gray; display: inline-block; margin-bottom:6px; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">
|
||||||
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
|
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;"%>
|
||||||
</div>
|
</span>
|
||||||
<div class="inner-right" style="float: right; width:86%; height: 100%; ">
|
<br>
|
||||||
<span style="color: green;"><%= link_to event.event_author, (user_path(event.event_author) if event.event_author), :style => "color:green;" %></span><!-- 发表了<%= find_all_event_type event %>:<span style="color: blue;"><%= link_to truncate(event.event_title, length: 30, omission:'...'), event.event_url %>
|
<span style="margin-left: 24px; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;"><%=time_tag_welcome(topic_last_time topic)%>前</span>
|
||||||
</span> --><%= show_user_content event %>
|
<span style="margin-left: 8px; margin-bottom: 0px; color: rgb(172, 174, 177) !important; white-space: nowrap;">
|
||||||
<p style="margin-top: 4px;"><span style="color: rgb(172, 174, 177)"><%= time_tag_welcome event.event_datetime %>前</span> <span style="float: right; color: rgb(172, 174, 177);"><%= show_event_reply event %></span></p>
|
由 <%= link_to topic.author ? topic.author : 'Anonymous', user_path(topic.author_id), :style => "font-size: 9pt !important; color: rgb(17, 102, 173);"%> 发表
|
||||||
</div>
|
</span>
|
||||||
</li>
|
<span style="float: right; color: rgb(172, 174, 177); white-space: nowrap; font-size: 9pt !important;;">回复(<%= link_to topic.replies_count, topic.event_url %>)</span>
|
||||||
<% end %>
|
</div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="right" style="float: right; margin-right: 10px; height: 445px; width: 45%; ">
|
||||||
|
<ul class="user-welcome-message-list" style="width: 94%; margin-top: 0px;">
|
||||||
|
<h3 style="margin-left: -5px; color: rgb(21, 188, 207)"><strong>用户动态</strong></h3>
|
||||||
|
<span style="margin-top: -30px;float: right; display: block;"><%= link_to "更多>>", { :controller => 'users', :action => 'index'} %></span>
|
||||||
|
<div class="user-message-box-list">
|
||||||
|
<% find_all_activities.each do |event| %>
|
||||||
|
<li style="display: block;height:60px; padding-bottom: 4px;">
|
||||||
|
<div class="inner-right" style="float: left; height: 100%; ">
|
||||||
|
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
|
||||||
|
</div>
|
||||||
|
<div class="inner-right" style="float: right; width:86%; height: 100%; ">
|
||||||
|
<span style="color: green;"><%= link_to event.event_author, (user_path(event.event_author) if event.event_author), :style => "color:green;" %></span><%= show_user_content event %>
|
||||||
|
<p style="margin-top: 4px;"><span style="color: rgb(172, 174, 177)"><%= time_tag_welcome event.event_datetime %>前</span> <span style="float: right; color: rgb(172, 174, 177);"><%= show_event_reply event %></span></p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
||||||
<h3 style="margin-left: 5px; color: #e8770d;"><strong>热门项目</strong></h2>
|
<h3 style="margin-left: 5px; color: #e8770d;"><strong>热门项目</strong></h3>
|
||||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", { :controller => 'projects', :action => 'index', :project_type => 0} %></span>
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", { :controller => 'projects', :action => 'index', :project_type => 0} %></span>
|
||||||
<div class="d-p-projectlist-box">
|
<div class="d-p-projectlist-box">
|
||||||
<ul class="d-p-projectlist">
|
<ul class="d-p-projectlist">
|
||||||
<% find_all_hot_project.map do |project| break if(project == find_all_hot_project[15]) %>
|
<% find_all_hot_project.map do |project| break if(project == find_all_hot_project[15]) %>
|
||||||
<li style="background-image:none;">
|
<li style="background-image:none;">
|
||||||
|
@ -294,7 +154,6 @@
|
||||||
<div style="float: left; margin-left: 10px; width: 360px;">
|
<div style="float: left; margin-left: 10px; width: 360px;">
|
||||||
<p class="layout">
|
<p class="layout">
|
||||||
<span style="display: inline-block; width: 250px;"><%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name", :title => "#{project.name}")%></span>
|
<span style="display: inline-block; width: 250px;"><%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name", :title => "#{project.name}")%></span>
|
||||||
<!-- <span style="cursor: help; display: inline-block; float: right; color: #ec6300; background: url('/images/score.png') no-repeat scroll ;background-position: left center;" title="项目得分,综合考虑了项目的各项活动,反映了该项目的活跃程度" class="tooltip-#{project.id}"><%= show_grade project %></span> -->
|
|
||||||
<%= content_tag "span", show_grade(project),
|
<%= content_tag "span", show_grade(project),
|
||||||
:style => "cursor: pointer; display: inline-block; float: right; color: #ec6300; ",
|
:style => "cursor: pointer; display: inline-block; float: right; color: #ec6300; ",
|
||||||
:title => "项目得分,综合考虑了项目的各项活动,反映了该项目的活跃程度",
|
:title => "项目得分,综合考虑了项目的各项活动,反映了该项目的活跃程度",
|
||||||
|
@ -362,8 +221,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
||||||
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门众包</strong></h3>
|
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门众包</strong></h3>
|
||||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'index'} %></span>
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'index'} %></span>
|
||||||
<div class="d-p-projectlist-box">
|
<div class="d-p-projectlist-box">
|
||||||
<ul class="d-p-projectlist">
|
<ul class="d-p-projectlist">
|
||||||
<% find_all_hot_bid.map do |bid| break if(bid == find_all_hot_bid[5]) %>
|
<% find_all_hot_bid.map do |bid| break if(bid == find_all_hot_bid[5]) %>
|
||||||
|
@ -388,9 +247,7 @@
|
||||||
|
|
||||||
|
|
||||||
<br/><br/><br/><br/><br/><br/><br/>
|
<br/><br/><br/><br/><br/><br/><br/>
|
||||||
<!-- end -->
|
|
||||||
<div style="padding-top: 40px"></div>
|
<div style="padding-top: 40px"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" width="580px" >
|
<td colspan="2" width="580px" >
|
||||||
<p class="info-break">
|
<div class="info-break">
|
||||||
<%= textilizable journal.notes%>
|
<%= textilizable journal.notes%>
|
||||||
</p></td>
|
</div></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left"><span class="font_lighter"> <%= l :label_comment_time %>: <%= format_time journal.created_on %></span></td>
|
<td align="left"><span class="font_lighter"> <%= l :label_comment_time %>: <%= format_time journal.created_on %></span></td>
|
||||||
|
@ -35,7 +35,8 @@
|
||||||
:method => 'post', :title => l(:button_quote))%>
|
:method => 'post', :title => l(:button_quote))%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="line_under"></div>
|
<div class="line_under"></div>
|
||||||
|
|
|
@ -732,7 +732,7 @@ ul.tool li{list-style-type:none;
|
||||||
.font_tool{
|
.font_tool{
|
||||||
font-family:微软雅黑;
|
font-family:微软雅黑;
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
color: 1a1a1a;
|
color: #1a1a1a;
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -743,8 +743,8 @@ ul.tool li{list-style-type:none;
|
||||||
.welcome_left{
|
.welcome_left{
|
||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
float:left;
|
float:left;
|
||||||
|
padding-left: 10px;
|
||||||
width: 49%;
|
width: 49%;
|
||||||
padding-left: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome_right{
|
.welcome_right{
|
||||||
|
@ -1490,7 +1490,7 @@ margin-left:-10px;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
|
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
width:320px;
|
width:320px;
|
||||||
|
|
||||||
font-family:微软雅黑,lucida grande,verdana;
|
font-family:微软雅黑,lucida grande,verdana;
|
||||||
|
|
Loading…
Reference in New Issue