Skip to content

Commit

Permalink
Markup fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorrizza committed Jan 26, 2016
1 parent d1d7bee commit 2029e8f
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions app/views/alchemy/admin/pages/_pages.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,79 +11,79 @@
<div class="page icon <%= @sorting && level > 1 ? 'handle' : nil %>"></div>
<%- end -%>
</div>
</div>
<div class="sitemap_right_tools">
<%- unless @sorting -%>
<%- if can?(:info, page) -%>
<%= link_to_dialog(
render_icon('info'),
alchemy.info_admin_page_path(page),
{
title: _t(:page_infos),
size: '520x290'
},
{
title: _t(:page_infos),
class: 'sitemap_tool'
}
) %>
<%- end -%>
<%- if can?(:configure, page) -%>
<%= link_to_dialog(
render_icon('configure_page'),
alchemy.configure_admin_page_path(page),
{
title: _t(:edit_page_properties),
size: page.redirects_to_external? ? '450x330' : '450x720'
},
title: _t(:edit_page_properties),
class: 'sitemap_tool'
) -%>
<%- end -%>
<span class="sitemap_sitetools">
<%- if can?(:copy, page) -%>
<%= link_to(
render_icon("copy_page"),
alchemy.insert_admin_clipboard_path(
remarkable_type: page.class.name.demodulize.underscore.pluralize,
remarkable_id: page.id
),
remote: true,
method: 'post',
title: _t(:copy_page),
class: 'sitemap_tool'
) %>
<%- end -%>
<%- if can?(:destroy, page) -%>
<%= link_to_confirm_dialog(
render_icon('delete_page'),
_t(:confirm_to_delete_page),
url_for(
controller: 'pages',
action: 'destroy',
id: page.id
),
<div class="sitemap_right_tools">
<%- unless @sorting -%>
<%- if can?(:info, page) -%>
<%= link_to_dialog(
render_icon('info'),
alchemy.info_admin_page_path(page),
{
title: _t(:page_infos),
size: '520x290'
},
{
title: _t(:delete_page),
title: _t(:page_infos),
class: 'sitemap_tool'
}
) -%>
) %>
<%- end -%>
<%- if can?(:create, Alchemy::Page) -%>
<%- if can?(:configure, page) -%>
<%= link_to_dialog(
render_icon('add_page'),
alchemy.new_admin_page_path(parent_id: page.id),
render_icon('configure_page'),
alchemy.configure_admin_page_path(page),
{
title: _t(:create_page),
size: '340x165',
overflow: true
title: _t(:edit_page_properties),
size: page.redirects_to_external? ? '450x330' : '450x720'
},
title: _t(:create_page),
title: _t(:edit_page_properties),
class: 'sitemap_tool'
) -%>
<%- end -%>
</span>
<%- end -%>
<span class="sitemap_sitetools">
<%- if can?(:copy, page) -%>
<%= link_to(
render_icon("copy_page"),
alchemy.insert_admin_clipboard_path(
remarkable_type: page.class.name.demodulize.underscore.pluralize,
remarkable_id: page.id
),
remote: true,
method: 'post',
title: _t(:copy_page),
class: 'sitemap_tool'
) %>
<%- end -%>
<%- if can?(:destroy, page) -%>
<%= link_to_confirm_dialog(
render_icon('delete_page'),
_t(:confirm_to_delete_page),
url_for(
controller: 'pages',
action: 'destroy',
id: page.id
),
{
title: _t(:delete_page),
class: 'sitemap_tool'
}
) -%>
<%- end -%>
<%- if can?(:create, Alchemy::Page) -%>
<%= link_to_dialog(
render_icon('add_page'),
alchemy.new_admin_page_path(parent_id: page.id),
{
title: _t(:create_page),
size: '340x165',
overflow: true
},
title: _t(:create_page),
class: 'sitemap_tool'
) -%>
<%- end -%>
</span>
<%- end -%>
</div>
<div class="page_infos" id="page_<%= page.id %>_infos">
<span class="page_status <%= page.public ? 'public' : 'not_public' %>" title="<%= page.status_title(:public) %>"></span>
<span class="page_status <%= page.visible ? 'visible' : 'not_visible' %>" title="<%= page.status_title(:visible) %>"></span>
Expand Down

0 comments on commit 2029e8f

Please sign in to comment.