Add Brief intro. for all personal plugins
Add Share Setting for Personal Plugins ( if have old data must be add default value "field: is_hidden => false " ) Apply New UI to Member Plugin Edit Page Personal Plugin Summary fix Academic Info. list fix
This commit is contained in:
1 parent
b487740035
commit
a067bcd304
159 files changed
+5145
-3453
No files matched your search
Vendored
+20
-18
@@ -24,27 +24,29 @@
|
||||
|
||||
<% show_roles.attribute_fields.where(:disabled=>false).asc(:_id).each do |rf| %>
|
||||
|
||||
<%
|
||||
if !@member.get_attribute_value(rf).blank?
|
||||
if !@member.get_attribute_value(rf)['val'].blank?
|
||||
@rodata = @member.get_attribute_value(rf)['val']
|
||||
elsif !@member.get_attribute_value(rf)[I18n.locale].blank?
|
||||
@rodata = @member.get_attribute_value(rf)[I18n.locale]
|
||||
else
|
||||
@rodata = nil
|
||||
end
|
||||
end
|
||||
<%
|
||||
if !@member.get_attribute_value(rf).blank?
|
||||
if !@member.get_attribute_value(rf)['val'].blank?
|
||||
@rodata = @member.get_attribute_value(rf)['val']
|
||||
elsif !@member.get_attribute_value(rf)[I18n.locale].blank?
|
||||
@rodata = @member.get_attribute_value(rf)[I18n.locale]
|
||||
else
|
||||
@rodata = nil
|
||||
end
|
||||
|
||||
if !@rodata.blank? and !@member.get_attribute_value(rf).get_value_by_locale(I18n.locale).blank?
|
||||
%>
|
||||
if !@rodata.blank? and !@member.get_attribute_value(rf).get_value_by_locale(I18n.locale).blank?
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%= rf.title %></td>
|
||||
<td><%= nl2br(show_attribute_value(@member.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= rf.title %></td>
|
||||
<td><%= nl2br(show_attribute_value(@member.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
<%= render :partial => 'show_sub_role',:collection=> @member.get_sub_roles_by_role(show_roles)%>
|
||||
|
||||
<%= render :partial => 'show_sub_role',:collection=> @member.get_sub_roles_by_role(show_roles)%>
|
||||
+48
-15
@@ -46,38 +46,71 @@
|
||||
<%= show_avatar(@member) %>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="member-module">
|
||||
<div class="module-nav">
|
||||
<ul>
|
||||
<% @plugins.each do |plugin| %>
|
||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
||||
<%
|
||||
@plugins.each do |plugin|
|
||||
|
||||
@data = plugin.app_name.classify.constantize.where(is_hidden: false, :create_user_id=>@member.id)
|
||||
@intro_data = plugin.intro_app_name.classify.constantize.where(:user_id=>@member.id).first
|
||||
%>
|
||||
|
||||
<% if !@intro_data.blank? %>
|
||||
|
||||
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
|
||||
<% if !@data.blank? %>
|
||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="module-content">
|
||||
<%
|
||||
|
||||
@plugins.each do |plugin|
|
||||
@plugins.each do |plugin|
|
||||
|
||||
@plugin_partial = !plugin.front_partial_path.blank? ? OrbitApp::Plugin::Registration.find_by_key(plugin.name).front_partial_path : nil
|
||||
|
||||
@data = plugin.app_name.classify.constantize.where(:create_user_id=>@member.id)
|
||||
@intro_data = plugin.intro_app_name.classify.constantize.where(:user_id=>@member.id).first
|
||||
%>
|
||||
|
||||
<div class="module-pane" id="<%= plugin.name %>">
|
||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||
</div>
|
||||
|
||||
<% if !@intro_data.blank? %>
|
||||
|
||||
<% if !@intro_data.brief_intro.blank? or !@intro_data.complete_list.blank? %>
|
||||
<div class="module-pane" id="<%= plugin.name %>">
|
||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
|
||||
<% if !@data.blank? %>
|
||||
<div class="module-pane" id="<%= plugin.name %>">
|
||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<%= stylesheet_link_tag "member/default_member" %>
|
||||
|
||||
<%= javascript_include_tag "member/moduletab" %>
|
||||
<%= javascript_include_tag "member/moduletab" %>
|
||||
|
||||
Reference in new issue
Block a user