app/views/admin/posts/_sidebar.html.erb in camaleon_cms-1.0.4 vs app/views/admin/posts/_sidebar.html.erb in camaleon_cms-1.0.5
- old
+ new
@@ -48,15 +48,17 @@
<option value="pending" <%= (@post[:status] == "pending") ? "selected": "" %>><%= t('admin.table.pending')%></option>
<option value="draft" <%= (@post[:status] == "draft") ? "selected": "" %>><%= t('admin.table.draft')%></option>
</select>
</div>
<!-- templates -->
- <% if @post.manage_template?(@post_type) && (template_files = get_list_template_files).present? %>
- <div class="form-group">
- <label class="control-label"><%= t('admin.post_type.template')%></label>
- <%= select("meta", "template", template_files, { include_blank: true, selected: (params[:meta][:template] rescue false || @post.meta[:template] ) }, {class: 'form-control'}) %>
- </div>
+ <% if @post.manage_template?(@post_type) %>
+ <% if (template_files = get_list_template_files).present? %>
+ <div class="form-group">
+ <label class="control-label"><%= t('admin.post_type.template')%></label>
+ <%= select("meta", "template", template_files, { include_blank: true, selected: (params[:meta][:template] rescue false || @post.meta[:template] ) }, {class: 'form-control'}) %>
+ </div>
+ <% end %>
<!-- layouts -->
<% if (layout_files = get_list_layouts_files).present? %>
<div class="form-group">
<label class="control-label"><%= t('admin.post_type.layout')%></label>
@@ -88,11 +90,11 @@
<%= raw post_type_html_inputs(@post_type, "categories", "categories" , "checkbox" ,params[:categories] || (@post.new_record? ? [] : @post.categories.pluck("term_taxonomy.id")), "categorychecklist", true )%>
</div>
</div>
</div>
<% end %>
- <% if @post_type.manage_tags?%>
+ <% if @post_type.manage_tags? %>
<div class="panel panel-default panel-lite">
<div class="panel-heading">
<h3 class="panel-title"><%= t('admin.post_type.tags')%></h3>
<ul class="panel-controls">
<li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span></a></li>
@@ -131,6 +133,6 @@
<a href="#" class="btn btn-default" onclick="upload_feature_image(); return false;"><i class="fa fa-upload"></i> <%= t('admin.post_type.upload_image')%></a>
</div>
</div>
</div>
<% end %>
-</div>
\ No newline at end of file
+</div>