添加新闻模块、部分样式

dev_repository_hjq
huang 11 years ago
parent eb6deed682
commit ba09213023

@ -1,3 +1,6 @@
<div class="project_r_h">
<h2 class="project_h2"><%= l(:label_news) %></h2>
</div>
<script type="text/javascript"> <script type="text/javascript">
function regexTitle() function regexTitle()
{ {
@ -66,10 +69,6 @@
label_tips = l(:label_news) label_tips = l(:label_news)
end end
%> %>
<span style="font-size: 16px; border-bottom:1px solid #f0f0f0; margin-right: 15px;">
<%= label_tips %>
</span>
<% if @project.enabled_modules.where("name = 'news'").count > 0 && User.current.member_of?(@project) %> <% if @project.enabled_modules.where("name = 'news'").count > 0 && User.current.member_of?(@project) %>
<%= link_to(btn_tips, <%= link_to(btn_tips,
new_project_news_path(@project), new_project_news_path(@project),

@ -1,3 +1,6 @@
<div class="project_r_h">
<h2 class="project_h2"><%= l(:label_news) %></h2>
</div>
<script type="text/javascript"> <script type="text/javascript">
function regexTitle() function regexTitle()
{ {

@ -1,22 +1,16 @@
<div class="project_r_h"> <div class="project_r_h">
<h2 class="project_h2">邀请加入</h2> <h2 class="project_h2">邀请加入</h2>
</div> </div>
<div class="floatbox" style="margin:100px;"> <div class="floatbox" style="margin:120px;">
<div ><a href="#" class="box_close"></a></div> <div ><a href="#" class="box_close"></a></div>
<div class="cl"></div> <div class="cl"></div>
<div class="box_main"> <div class="box_main">
<h3 class="box_h3">发送邮件邀请新用户</h3> <h3 class="box_h3">发送邮件邀请新用户</h3>
<p class="box_p">输入好友邮箱地址Trustie帮您免费发送</p> <p class="box_p">输入好友邮箱地址Trustie帮您免费发送</p>
<p style="padding-lef:20px;"><%= form_tag('send_mail_to_member', :controller => 'projects',:action => 'send_mail_to_member', method: 'get',:remote=>true) do %></p> <p style="padding-lef:20px;"><%= form_tag('send_mail_to_member', :controller => 'projects',:action => 'send_mail_to_member', method: 'get',:remote=>true) do %></p>
<ul>
<li >
<%= text_field_tag 'mail', '邮箱', :class => "fb_item fl" %> <%= text_field_tag 'mail', '邮箱', :class => "fb_item fl" %>
</li>
<div class="cl"></div> <div class="cl"></div>
<%= submit_tag '免费发送', :style=> "display:block; width:80px; text-align:center; color:#fff; height:26px; padding-top:3px; margin-bottom:10px;" %>
<div class="cl"></div>
</ul>
<%= submit_tag '免费发送', :class=> "btn_free" %>
<% end %> <% end %>
</div> </div>

@ -3,6 +3,9 @@
<%= link_to l(:label_settings), settings_project_path(@project) %> <%= link_to l(:label_settings), settings_project_path(@project) %>
<% end %> <% end %>
</li> </li>
<li>
<%= link_to l(:field_user_active_news), project_news_index_path(@project) %>
</li>
<li> <li>
<%= link_to l(:project_module_wiki), project_wiki_path(@project) %> <%= link_to l(:project_module_wiki), project_wiki_path(@project) %>
</li> </li>

@ -39,7 +39,7 @@
<% end %> <% end %>
</p> </p>
<p> <p>
<%= submit_tag l(:button_add), :id => 'member-add-submit', :style => 'display:block; width:80px; text-align:center; color:#fff; height:26px; padding-top:3px; margin-bottom:10px;' %> <%= submit_tag l(:label_invite_members), :id => 'member-add-submit', :style => 'display:block; width:80px; text-align:center; color:#fff; height:26px; padding-top:3px; margin-bottom:10px;' %>
</p> </p>
<% end %> <% end %>
<% end %> <% end %>

@ -1928,6 +1928,7 @@ zh:
label_bids_task_list: 作业列表 label_bids_task_list: 作业列表
label_join_course: 加入 label_join_course: 加入
label_invite_project: 邀请您加入项目 label_invite_project: 邀请您加入项目
label_invite_members: 邀请用户
label_exit_course: 退出 label_exit_course: 退出
label_exit_group: 退出当前分班 label_exit_group: 退出当前分班
label_new_join: 加入 label_new_join: 加入

@ -91,7 +91,7 @@ a:hover.more{ color:#64bdd9;}
.box_close{ display:block; float:right; width:16px; height:16px; background:url(../images/img_floatbox.png) 0 0 no-repeat;} .box_close{ display:block; float:right; width:16px; height:16px; background:url(../images/img_floatbox.png) 0 0 no-repeat;}
.box_close:hover{background:url(../images/img_floatbox.png) -22px 0 no-repeat;} .box_close:hover{background:url(../images/img_floatbox.png) -22px 0 no-repeat;}
/*邮件邀请*/ /*邮件邀请*/
.box_main{ width:345px; margin:0 auto;} .box_main{ width:345px; margin:0 auto;padding-left:40px;}
.box_h3{ color:#15bccf; text-align:center; font-size:16px;} .box_h3{ color:#15bccf; text-align:center; font-size:16px;}
.box_p{ color:#404040; margin-bottom:5px;} .box_p{ color:#404040; margin-bottom:5px;}
.fb_item{ color:#919191; border:1px solid #919191; height:28px; margin-bottom:10px; padding-left:5px; width:290px;} .fb_item{ color:#919191; border:1px solid #919191; height:28px; margin-bottom:10px; padding-left:5px; width:290px;}

Loading…
Cancel
Save