modify show of some style

This commit is contained in:
xianbo 2013-11-08 15:49:08 +08:00
parent 5032eaabcb
commit 3253f1cf28
10 changed files with 16 additions and 15 deletions

View File

@ -1354,7 +1354,7 @@ module ApplicationHelper
#added by nie
# Display watcher picture
def show_more_watchers?(obj)
if User.watched_by(obj.id).count > 12
if User.watched_by(obj.id).count > 6
return true
else
return false

View File

@ -75,8 +75,8 @@
<%= f.text_field :reference_user_id, :style=>"display:none"%>
<table border="0" width="525px" align="center">
<tr>
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
<%= submit_tag l(:button_clear_requirement), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise" %>
<%= submit_tag l(:button_clear_requirement), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "btn_bid" %> </td>
</tr>
</table>
<% else %>

View File

@ -92,11 +92,11 @@
<% end %>
<tr>
<td align="right">
<%= submit_tag l(:button_add), :name => nil , :class => "bid_btn",
<%= submit_tag l(:button_add), :name => nil , :class => "btn_bid",
:onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
:type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'",
:type => 'button', :class => "btn_bid", :onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
</td>
</tr>

View File

@ -72,8 +72,8 @@
:value => "#{l(:label_bid_reason)}", :style => "resize: none;", :class => 'noline'%></td>
</tr>
<tr>
<td align="right"><%= submit_tag l(:button_add), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'",
<td align="right"><%= submit_tag l(:button_add), :name => nil , :class => "btn_bid", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();", :type => 'button', :class => "btn_bid", :onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %> </td>
</tr>
</table>

View File

@ -110,7 +110,7 @@
<table>
<tr>
<td style="padding-top: 5px">
<% if @bid.watcher_users.size>0 %>
<% if @bid.watcher_users.size>0 && @bid.watcher_users.count<13%>
<% for user in @bid.watcher_users%>
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ), user_path(user), :class => "avatar" %>
<% end %>
@ -132,11 +132,11 @@
<table>
<tr>
<td style="padding-top: 5px">
<% if @bid.projects.size>0 %>
<% if @bid.projects.size>0%>
<% for project in @bid.projects%>
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %>
<% end%>
<% else %>
<%else%>
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
<% end %>
</td>

View File

@ -3,7 +3,7 @@
<%= labelled_form_for @news, :url => project_news_index_path(@project),
:html => { :id => 'news-form', :multipart => true } do |f| %>
<%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<%= submit_tag l(:button_create), :class => "enterprise" %>
<%= preview_link preview_news_path(:project_id => @project), 'news-form' %>
<% end %>
<div id="preview" class="wiki"></div>

View File

@ -12,7 +12,7 @@
</table>
<table border="0" width="525px" align="center">
<tr>
<td align="right"> <%= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %></td>
<td align="right"> <%= submit_tag l(:button_submit), :name => nil , :class => "enterprise" %></td>
</tr>
</table>
<% end %>

View File

@ -4,13 +4,13 @@
<h3><%=l(:label_course_new)%></h3>
<div class="box tabular">
<%= render :partial => 'course_form', :locals => { :f => f } %>
<span style="padding-left: 60px"><%= submit_tag l(:button_create) %></span>
<span style="padding-left: 60px"><%= submit_tag l(:button_create), :class => "enterprise"%></span>
<!-- <%= submit_tag l(:button_create_and_continue), :name => 'course_continue' %> -->
<% else %>
<h3><%=l(:label_project_new)%></h3>
<div class="box tabular" >
<%= render :partial => 'form', :locals => { :f => f } %>
<span style="padding-left: 60px"><%= submit_tag l(:button_create)%></span>
<span style="padding-left: 60px"><%= submit_tag l(:button_create), :class => "enterprise"%></span>
<!-- <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> -->
<% end %>
<%= javascript_tag "$('#project_name').focus();" %>

View File

@ -3,7 +3,7 @@
<%= labelled_form_for @homework, :url => {:controller => 'bids', :action => 'create_homework'} do |f| %>
<div class="box tabular">
<%= render :partial => 'homework_form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<%= submit_tag l(:button_create), :class => "enterprise" %>
<%= javascript_tag "$('#bid_name').focus();" %>
<% end %>
</div>

1
tmp/plugins/README Normal file
View File

@ -0,0 +1 @@
Put your Redmine plugins here.