|
|
|
@ -12,24 +12,13 @@
|
|
|
|
|
<%= ma.content %>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageHomeworkContentWarn fl">
|
|
|
|
|
<% if ma.status == 0 %>
|
|
|
|
|
<%=link_to "同意", agree_apply_subdomain_organizations_path( :organization_id => ma.organization_id, :org_domain => ma.content, :user_id => ma.sender_id, :message_id => ma.id ),
|
|
|
|
|
:id => 'agree_apply_subdomain',
|
|
|
|
|
<%=link_to (ma.organization.domain.nil? || (ma.organization.domain && ma.organization.domain != ma.content)) ? "同意申请":"已同意申请",
|
|
|
|
|
agree_apply_subdomain_organizations_path( :organization_id => ma.organization_id, :org_domain => ma.content, :user_id => ma.sender_id, :act_id => ma.id ),
|
|
|
|
|
:id => "agree_apply_subdomain_#{ma.id}",
|
|
|
|
|
:method => 'post',
|
|
|
|
|
:remote => true,
|
|
|
|
|
:class => "green_btn_cir ml10",
|
|
|
|
|
:style => "color:#fff" %>
|
|
|
|
|
<%=link_to "拒绝", agree_apply_subdomain_organizations_path( :organization_id => ma.organization_id, :org_domain => ma.content, :user_id => ma.sender_id,:message_id => ma.id ),
|
|
|
|
|
:id => 'agree_apply_subdomain',
|
|
|
|
|
:method => 'post',
|
|
|
|
|
:remote => true,
|
|
|
|
|
:class => "green_btn_cir ml10",
|
|
|
|
|
:style => "color:#fff" %>
|
|
|
|
|
<% elsif ma.status == 1 %>
|
|
|
|
|
<a href="javascript:void(0);" class="green_btn_cir ml10">已同意</a>
|
|
|
|
|
<% elsif ma.status == 2 %>
|
|
|
|
|
<a href="javascript:void(0);" class="green_btn_cir ml10">已拒绝</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
|
|
|
</ul>
|
|
|
|
@ -40,7 +29,7 @@
|
|
|
|
|
<a href="javascript:void(0);"><div class="navHomepageLogo fl"><%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %></div></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageNewsPubType fl">
|
|
|
|
|
<span class='<%= ma.viewed == 0 ? 'homepageNewsTypeNotRead fl' : 'homepageNewsType fl' %>'>管理员<%= ma.status == 1 ? '同意':'拒绝' %>了您的子域名申请:</span>
|
|
|
|
|
<span class='<%= ma.viewed == 0 ? 'homepageNewsTypeNotRead fl' : 'homepageNewsType fl' %>'>管理员同意了您的子域名申请:</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageNewsContent fl">
|
|
|
|
|
<%= ma.content %>
|
|
|
|
|