Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
digi604 committed Nov 6, 2012
1 parent 09f42d8 commit d051a7f
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions cms/templates/cms/toolbar/placeholder.html
@@ -1,42 +1,8 @@
<<<<<<< HEAD
{% if edit %}
{{ toolbar }}
<div>
{{ plugins }}
{{ dragables }}
=======
{% load i18n sekizai_tags %}
{% addtoblock "js" %}
<script type="text/javascript">
CMS.$(document).ready(function () {
new CMS.Placeholder('#cms_placeholder-bar-{{ placeholder.pk }}', {
'type': 'bar',
'placeholder_id': '{{ placeholder.pk }}',
'plugin_language': '{{ language }}', // todo not required should be within backend
'plugin_restriction': ['TextPlugin', 'PicturePlugin'], // empty = false // todo just testing atm
'urls': {
'add_plugin': '{{ placeholder.get_add_url }}',
'edit_plugin': '{{ placeholder.get_changelist_url }}'
}
});
});
</script>
{% endaddtoblock %}
<div id="cms_placeholder-bar-{{ placeholder.pk }}" class="cms_reset cms_light cms_placeholder-bar">
<div class="cms_placeholder-title">{{ placeholder_label }}</div>
<div class="cms_placeholder-btn">
<a href="#"><span>{% trans "Add Plugin" %}</span></a>
<ul class="cms_placeholder-subnav">
{% regroup installed_plugins by module as module_list %}
{% for module in module_list %}
<li class="cms_placeholder-subnav-title"><span>{% if module.grouper %}{{ module.grouper|capfirst }}{% else %}{% trans "Add Plugin" %}{% endif %}</span></li>
{% for p in module.list %}
<li><a href="#{{ p.value }}">{{ p.name }}</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>
>>>>>>> finalangle/feature/new_toolbar
</div>
{% else %}
{{ plugins }}
Expand Down

0 comments on commit d051a7f

Please sign in to comment.