整个界面样式协调

This commit is contained in:
huangjingquan 2013-11-08 20:54:45 +08:00
parent 55c592ec7d
commit 718fa65fc4
9 changed files with 39 additions and 36 deletions

View File

@ -46,7 +46,7 @@
<% end %> --> <% end %> -->
<!--add by huang :list news--> <!--add by huang :list news-->
<div style="padding-top: 15px"> <div>
<% if @newss.empty? %> <% if @newss.empty? %>
<p class="nodata"> <p class="nodata">
<%= l(:label_no_data) %> <%= l(:label_no_data) %>

View File

@ -1,17 +1,9 @@
<!-- fq --> <!-- fq -->
<!--modified by huang-->
<div class="project-search-block"> <div class="content-title-top">
<table width="100%" valign="center"> <% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.roles&Role.where('id = ? or id = ?', 3, 7)).size >0))%>
<tr>
<td width="16%"><span style="margin-left:0px"><%= l(:label_course_homework_list)%></span></td>
<td valign="center"><% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.roles&Role.where('id = ? or id = ?', 3, 7)).size >0))%>
<!-- <div class='icon icon-add'> -->
<%= link_to(l(:label_course_homework_new), {:controller => 'projects', :action => 'new_homework'}, :class => 'icon icon-add') %> <%= link_to(l(:label_course_homework_new), {:controller => 'projects', :action => 'new_homework'}, :class => 'icon icon-add') %>
<!-- <%= toggle_link l(:label_new_call), 'put-bid-form', {:focus => 'project_id'} %> --> <% end %>
<!-- </div> -->
<% end %></td>
</tr></table>
</div> </div>
<div id="bid-show"> <div id="bid-show">
<%= render :partial => 'bids/bid_homework_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %> <%= render :partial => 'bids/bid_homework_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>

View File

@ -1,17 +1,15 @@
<p> <% if @events_by_day.size >0 %>
<% if @events_by_day.size >0 %> <div class="content-title-top-avtive">
<div style="padding-left: 8px"> <!-- <h3><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %></h3> -->
<h3><!-- %= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe % --></h3>
<p class="subtitle"> <p class="subtitle">
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %> <%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
</p> </p>
<div id="activity">
<% @events_by_day.keys.sort.reverse.each do |day| %> <% @events_by_day.keys.sort.reverse.each do |day| %>
<h3></h3>
<div> <div>
<% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%> <% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
<div class="issue-note"> <div>
<table width="660px" border="0" align="center" style="font-size: 14px;"> <table class="underline-evreycontent" style="font-size: 14px;">
<tr> <tr>
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(e.event_author), :class => "avatar")%></td> <td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(e.event_author), :class => "avatar")%></td>
<td> <td>
@ -50,9 +48,8 @@
</ul> </ul>
</div> </div>
</div> </div>
</div> <% else %>
<% else %> <div class="font_description">
<p class="font_description">
<table width="660"> <table width="660">
<tr> <tr>
<td><%= image_tag(url_to_avatar(@user), :class => "avatar") %></td> <td><%= image_tag(url_to_avatar(@user), :class => "avatar") %></td>
@ -66,6 +63,5 @@
</table></td> </table></td>
</tr> </tr>
</table> </table>
</p> </div>
<% end %> <% end %>
</p>

View File

@ -1,3 +1,4 @@
<div class="content_frame">
<ul class="user_project_sort"> <ul class="user_project_sort">
<% for membership in @memberships %> <% for membership in @memberships %>
<li> <li>
@ -49,4 +50,5 @@
<% end %> <% end %>
</ul> </ul>
</div>
<%= call_hook :view_account_left_bottom, :user => @user %> <%= call_hook :view_account_left_bottom, :user => @user %>

View File

@ -1,4 +1,4 @@
<div class="content_frame"> <div class="content-title-top">
<% if @memberships.empty? %> <% if @memberships.empty? %>
<% if @user != User.current %> <% if @user != User.current %>
<p class="font_description"> <p class="font_description">

View File

@ -1,4 +1,4 @@
<div class="content_frame"> <div class="content-title-top">
<% if @memberships.empty? %> <% if @memberships.empty? %>
<% if @user != User.current %> <% if @user != User.current %>
<p class="font_description"> <p class="font_description">

View File

@ -1,10 +1,11 @@
<!--add by huang--> <!--add by huang-->
<p>温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</p> <p>温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</p>
<div class="content-title-top">
<% if @user == User.current %> <% if @user == User.current %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<% end %> <% end %>
</div>
<p><%= watch_projects @state%> <p><%= watch_projects @state%>
<% unless @memberships.empty? %> <% unless @memberships.empty? %>
<div class="content_frame"> <div class="content_frame">
<ul class="user_project_sort"> <ul class="user_project_sort">

View File

@ -11,12 +11,25 @@ h4 {border-bottom: 1px dotted #bbb;}
/*new by huang*/ /*new by huang*/
/**/ /**/
.content-title-top{ .underline-evreycontent{
margin-bottom: 10px;
border-bottom: 1px dashed rgb(204, 204, 204);
width: 660px;
}
.content-title-top-avtive{
padding-bottom: 15px; padding-bottom: 15px;
padding-left: 5px; padding-left: 5px;
padding-top: 5px;
}
.content-title-top{
padding-bottom: 20px;
padding-left: 5px;
} }
.content-text-list{ .content-text-list{
margin-bottom: 10px;
border-bottom: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204);
width: 580px; width: 580px;
} }

View File

@ -1204,8 +1204,7 @@ a.root {
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 0px; margin-bottom: 0px;
/*background-color: #f5f5f5;*/ /*background-color: #f5f5f5;*/
border-bottom: 1px solid #e3c3ca; border-bottom: 1px dashed rgb(204, 204, 204);
border-bottom: 1px solid #e3c3ca;
/*-webkit-border-radius: 4px; /*-webkit-border-radius: 4px;
-moz-border-radius: 4px; -moz-border-radius: 4px;
border-radius: 4px; border-radius: 4px;