Changes for NCCU after email
This commit is contained in:
		
							parent
							
								
									5281464af4
								
							
						
					
					
						commit
						33fc96ac7c
					
				| 
						 | 
				
			
			@ -45,7 +45,7 @@
 | 
			
		|||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="control-group">
 | 
			
		||||
            <%= f.label :data, t('admin.data'), :class => "control-label" %>
 | 
			
		||||
            <%#= f.label :data, t('admin.data'), :class => "control-label" %>
 | 
			
		||||
            <div class="controls">
 | 
			
		||||
                <%= f.file_field :data, :class => 'upload' %>
 | 
			
		||||
            </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,13 +9,14 @@ module ParserCommon
 | 
			
		|||
      res << "'>"
 | 
			
		||||
      i = nil
 | 
			
		||||
      i = 1 if menu.values["li_incremental_#{current}"]
 | 
			
		||||
      if menu.values['home'] && current == 1
 | 
			
		||||
        res << menu_li(page, current_page, current, menu, i, edit)
 | 
			
		||||
      end
 | 
			
		||||
      page.visible_children.each do |child|
 | 
			
		||||
      children = current == 1 ? page.visible_children.reverse : page.visible_children
 | 
			
		||||
      children.each do |child|
 | 
			
		||||
        res << menu_li(child, current_page, current, menu, i, edit)
 | 
			
		||||
        i += 1 if i
 | 
			
		||||
      end
 | 
			
		||||
      if menu.values['home'] && current == 1
 | 
			
		||||
        res << menu_li(page, current_page, current, menu, i, edit)
 | 
			
		||||
      end
 | 
			
		||||
      res << "</ul>"
 | 
			
		||||
    end
 | 
			
		||||
    res
 | 
			
		||||
| 
						 | 
				
			
			@ -197,7 +198,7 @@ module ParserCommon
 | 
			
		|||
        when 'module_widget'
 | 
			
		||||
          url = "/panel/#{part.module_app.key}/widget/#{part.widget_path}?inner=true"
 | 
			
		||||
          options = "&category_id=#{!part[:category].blank? ? part[:category].blank? : category}&tag_id=#{!part[:tag].blank? ? part[:tag] : tag}&page=#{params[:page]}&search_query=#{params[:search_query]}&part_title=#{Rack::Utils.escape(part_title).gsub("+", "%20") rescue nil}"
 | 
			
		||||
          ret << "<div class='dymanic_load' path='#{url + options}'></div>"
 | 
			
		||||
          ret << "<div class='dymanic_load widget' path='#{url + options}'></div>"
 | 
			
		||||
        when 'public_r_tag'
 | 
			
		||||
          ret << "<r:#{part.public_r_tag} id='#{part.public_r_tag_object_id}'/>"
 | 
			
		||||
          public_r_tags << part.public_r_tag
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -222,7 +222,7 @@ class Bulletin
 | 
			
		|||
  end
 | 
			
		||||
  
 | 
			
		||||
  def fetch_dept
 | 
			
		||||
    self.cache_dept = (User.current.cache_dept rescue nil) || (User.find(self.create_user_id).cache_dept rescue nil) 
 | 
			
		||||
    self.cache_dept = (User.current.cache_dept rescue nil) || (User.find(self.create_user_id).cache_dept rescue nil) if self.new_record?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,7 +41,7 @@
 | 
			
		|||
							<a href="#" data-toggle="dropdown" class="dropdown-toggle"><%= t(:quick_edit) %><b class="caret"></b></a>
 | 
			
		||||
							<ul class="dropdown-menu" id="menu1">
 | 
			
		||||
								<li><%= link_to t(:basic), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'basic'), :remote => true %></li>
 | 
			
		||||
								<li><%= link_to t(:picture), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'picture'), :remote => true %></li>
 | 
			
		||||
								<li><%#= link_to t(:picture), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'picture'), :remote => true %></li>
 | 
			
		||||
								<li><%= link_to t(:tags), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'tags'), :remote => true %></li>
 | 
			
		||||
								<li><%#= link_to t(:link), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'links'), :remote => true %></li>
 | 
			
		||||
								<li><%#= link_to t(:file), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'files'), :remote => true %></li>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,14 +6,14 @@
 | 
			
		|||
<table class="table table-bordered">
 | 
			
		||||
  <tr>
 | 
			
		||||
	<th><%= t('announcement.bulletin.title') %></th>
 | 
			
		||||
	<th><%= t('announcement.bulletin.postdate') %></th>
 | 
			
		||||
	<th class="date"><%= t('announcement.bulletin.postdate') %></th>
 | 
			
		||||
  </tr>
 | 
			
		||||
 | 
			
		||||
<% @bulletins.each do |post| %>
 | 
			
		||||
  <tr>
 | 
			
		||||
	<td><%= link_to post.title, panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
 | 
			
		||||
	</td>
 | 
			
		||||
	<td><%= display_date_time(post.postdate) %></td>
 | 
			
		||||
	<td class="date"><%= display_date_time(post.postdate) %></td>
 | 
			
		||||
  </tr>
 | 
			
		||||
  
 | 
			
		||||
<% end %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue