Sha256: 23d640d4f6450dfd9c3daa742aecaab7945656ab7d91ad057240766edf1145f1

Contents?: true

Size: 1.68 KB

Versions: 19

Compression:

Stored size: 1.68 KB

Contents

<%- if params[:action] != 'preview_template' -%>
  <style type="text/css">
    #mainCCSToolbar { font-family: Arial; font-size: 12px; font-weight: normal; text-transform: none; line-height: 1.2; color: black; }
    #mainCCSToolbar a { text-transform: none; font-weight: normal; color: black; }
  </style>
  <table id="mainCCSToolbar" cellpadding="0" cellspacing="0" border="0" width="100%" style="display: none">
    <%- if [ 'content', 'cms' ].include?(controller.controller_name) && params[:action] != 'preview_template' -%>
      <tr>
        <td>
      <%- if is_editing_page? -%>
        <div dojoType="Editor2" widgetId="main_toolbar" useActiveX="false" htmlEditing="true" focusOnLoad="false"
          toolbarTemplatePath="<%= url_for :controller => '/management/cms', :action => 'toolbar_edit', :id => @pg, :version => params[:version] %>"
          toolbarTemplateCssPath="/assets/dojo/src/widget/templates/EditorToolbarFullFeature.css"
          toolbarAlwaysVisible="true" style="height: 22px; vertical-align: middle" toolbarGroup="main">
        </div>
      <%- else -%>
        <div dojoType="Editor2" widgetId="main_toolbar" useActiveX="false" htmlEditing="false" focusOnLoad="false"
          toolbarTemplatePath="<%= url_for :controller => '/management/cms', :action => 'toolbar_preview', :id => @pg, :version => params[:version] %>"
          toolbarTemplateCssPath="/assets/dojo/src/widget/templates/EditorToolbarFullFeature.css"
          toolbarAlwaysVisible="true" style="height: 25px; vertical-align: middle">
        </div>
      <%- end -%>
        </td>
      </tr>
    <%- end -%>
      </td>
    </tr>
  </table>
  <%= javascript_tag "if (loggedIn()) $('mainCCSToolbar').show();" %>
<%- end -%>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
imagine_cms-4.0.0 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.33 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.32 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.31 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.30 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.29 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.28 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.27 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.26 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.25 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.24 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.23.1 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.23 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.22 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.21 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.19 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.18 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.17 app/views/imagine_cms/_toolbar.html.erb
imagine_cms-3.0.16 app/views/imagine_cms/_toolbar.html.erb