Merge branch 'design_team' into ldap

This commit is contained in:
Christophe Vilayphiou 2012-04-24 16:25:58 +08:00
commit 17e55b9805
7 changed files with 12 additions and 7 deletions

View File

@ -12,5 +12,4 @@
<% @site_valid_locales.each do |locale| %>
<td><%= bulletin_category.i18n_variable[locale] rescue nil %></td>
<% end %>
<td><%= bulletin_category.display %></td>
</tr>

View File

@ -8,7 +8,6 @@
<% @site_valid_locales.each do |locale| %>
<th class="span1-2"><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></th>
<% end %>
<th class="span1-2"><%= t('bulletin_category.display') %></th>
</tr>
</thead>
<tbody>

View File

@ -50,7 +50,7 @@
<div class="control-group">
<label class="control-label">Start</label>
<div class="controls">
<%= f.date_select :postdate, {:use_month_numbers => true, :prompt => { :month => 'Month', :day => 'Day', :year => 'Year'}, :order => [:day, :month, :year] }, {:class => 'input-small'} %>
<%= f.date_select :postdate, {:use_month_numbers => true, :order => [:day, :month, :year] }, {:class => 'input-small'} %>
</div>
</div>
<div class="control-group">
@ -144,14 +144,16 @@
<%= f.select :bulletin_category_id, @bulletin_categorys.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-medium" %>
<ul class="nav nav-tabs">
<% @site_valid_locales.each_with_index do |locale, i| %>
<%# @site_valid_locales.each_with_index do |locale, i| %>
<% site_valid_locales_default_head.each_with_index do |locale, i| %>
<li <%= ( i == 0 ) ? " class='active'" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
<% end %>
</ul>
<div class="tab-content">
<% @site_valid_locales.each_with_index do |locale, i| %>
<%# @site_valid_locales.each_with_index do |locale, i| %>
<% site_valid_locales_default_head.each_with_index do |locale, i| %>
<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">

View File

@ -5,7 +5,7 @@ class Panel::PageContent::BackEnd::PageContextsController < OrbitBackendControll
def index
@page_contexts = PageContext.where(:archived => false).desc(:updated_at)
@page_contexts = PageContext.where(:archived => false).desc(:updated_at).page(params[:page]).per(10)
respond_to do |format|
format.html # index.html.erb

View File

@ -17,4 +17,6 @@
</tbody>
</table>
<%= paginate @page_contexts %>

View File

@ -7,7 +7,8 @@ class Panel::WebResource::BackEnd::WebLinksController < OrbitBackendController
get_categorys(params[:web_link_category_id])
@web_links = WebLink.search(params[:category_id])
# @web_links = WebLink.search(params[:category_id])
@web_links = WebLink.all.page(params[:page]).per(10)
get_tags

View File

@ -19,3 +19,5 @@
</tbody>
</table>
<%= paginate @web_links %>