2010-05-02 23:33:17 +00:00
|
|
|
%ul
|
2010-05-26 00:41:10 +00:00
|
|
|
= admin_submenu_item 'pages', admin_pages_url do
|
|
|
|
.header
|
|
|
|
%p= link_to t('admin.pages.index.new'), new_admin_page_url
|
|
|
|
.inner
|
2010-07-21 23:56:42 +00:00
|
|
|
%h2!= t('admin.pages.index.lastest_items')
|
2010-05-26 00:41:10 +00:00
|
|
|
%ul
|
2011-01-02 22:58:06 +00:00
|
|
|
- current_site.pages.latest_updated.minimal_attributes.each do |page|
|
2010-05-26 00:41:10 +00:00
|
|
|
%li
|
2010-06-24 09:14:08 +00:00
|
|
|
= link_to truncate(page.title, :length => 25), edit_admin_page_url(page)
|
2010-05-26 00:41:10 +00:00
|
|
|
%span= time_ago_in_words(page.updated_at)
|
2010-05-24 00:18:23 +00:00
|
|
|
|
2011-03-08 15:05:07 +00:00
|
|
|
- each_content_type_menu_item do |content_type|
|
|
|
|
.header
|
|
|
|
%p= link_to t('admin.contents.index.new'), new_admin_content_url(content_type.slug)
|
|
|
|
.inner
|
|
|
|
%h2!= t('admin.contents.index.lastest_items')
|
|
|
|
%ul
|
|
|
|
- content_type.contents.latest_updated.each do |content|
|
|
|
|
%li
|
2011-03-08 16:25:38 +00:00
|
|
|
= link_to truncate(content.send(content_type.highlighted_field_name).to_s, :length => 20), edit_admin_content_path(content_type.slug, content)
|
2011-03-08 15:05:07 +00:00
|
|
|
%span= time_ago_in_words(content.updated_at)
|
|
|
|
|
|
|
|
- other_content_types do |content_types|
|
|
|
|
.inner
|
|
|
|
%ul.big-links
|
|
|
|
- content_types.each do |content_type|
|
|
|
|
%li
|
|
|
|
= link_to truncate(content_type.name, :length => 20), admin_contents_url(content_type.slug)
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-24 00:18:23 +00:00
|
|
|
.action
|
2011-03-03 22:51:07 +00:00
|
|
|
= link_to content_tag(:em) + content_tag(:span, t('admin.content_types.index.new')), new_admin_content_type_url
|