Skip to content

Commit

Permalink
Merge pull request #799 from ARNHOE/3.1
Browse files Browse the repository at this point in the history
Updated templates to be more consistent and removed trailing spaces
  • Loading branch information
simonwelsh committed Jul 18, 2013
2 parents ff18abb + 184aeab commit f937b95
Show file tree
Hide file tree
Showing 21 changed files with 104 additions and 104 deletions.
6 changes: 3 additions & 3 deletions templates/BreadcrumbsTemplate.ss
@@ -1,5 +1,5 @@
<% if Pages %>
<% loop Pages %>
<% if Last %>$MenuTitle.XML<% else %><a href="$Link" class="breadcrumb-$Pos">$MenuTitle.XML</a> &raquo;<% end_if %>
<% if $Pages %>
<% loop $Pages %>
<% if $Last %>$MenuTitle.XML<% else %><a href="$Link" class="breadcrumb-$Pos">$MenuTitle.XML</a> &raquo;<% end_if %>
<% end_loop %>
<% end_if %>
10 changes: 5 additions & 5 deletions templates/CMSPageHistoryController_versions.ss
Expand Up @@ -7,16 +7,16 @@
<th><% _t('CMSPageHistoryController_versions.ss.PUBLISHER','Publisher') %></th>
</tr>
</thead>

<tbody>
<% loop Versions %>
<% loop $Versions %>
<tr id="page-$RecordID-version-$Version" class="$EvenOdd $PublishedClass<% if not WasPublished %><% if not Active %> ui-helper-hidden<% end_if %><% end_if %><% if Active %> active<% end_if %>" data-published="<% if WasPublished %>true<% else %>false<% end_if %>">
<td class="ui-helper-hidden"><input type="checkbox" name="Versions[]" id="cms-version-{$Version}" value="$Version"<% if Active %> checked="checked"<% end_if %> /></td>
<% with LastEdited %>
<% with $LastEdited %>
<td class="last-edited first-column" title="$Ago - $Nice">$Nice</td>
<% end_with %>
<td><% if Author %>$Author.FirstName $Author.Surname.Initial<% else %><% _t('CMSPageHistoryController_versions.ss.UNKNOWN','Unknown') %><% end_if %></td>
<td class="last-column"><% if Published %><% if Publisher %>$Publisher.FirstName $Publisher.Surname.Initial<% else %><% _t('CMSPageHistoryController_versions.ss.UNKNOWN','Unknown') %><% end_if %><% else %><% _t('CMSPageHistoryController_versions.ss.NOTPUBLISHED','Not published') %><% end_if %></td>
<td><% if $Author %>$Author.FirstName $Author.Surname.Initial<% else %><% _t('CMSPageHistoryController_versions.ss.UNKNOWN','Unknown') %><% end_if %></td>
<td class="last-column"><% if $Published %><% if $Publisher %>$Publisher.FirstName $Publisher.Surname.Initial<% else %><% _t('CMSPageHistoryController_versions.ss.UNKNOWN','Unknown') %><% end_if %><% else %><% _t('CMSPageHistoryController_versions.ss.NOTPUBLISHED','Not published') %><% end_if %></td>
</tr>
<% end_loop %>
</tbody>
Expand Down
18 changes: 9 additions & 9 deletions templates/Includes/AssetAdmin_Content.ss
@@ -1,22 +1,22 @@
<div id="assetadmin-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">

<% with EditForm %>
<% with $EditForm %>
<div class="cms-content-header north">
<div class="cms-content-header-info">
<% include BackLink_Button %>

<% with Controller %>

<% with $Controller %>
<% include CMSBreadcrumbs %>
<% end_with %>

</div>
<% if Fields.hasTabset %>
<% with Fields.fieldByName('Root') %>
<% if $Fields.hasTabset %>
<% with $Fields.fieldByName('Root') %>
<div class="cms-content-header-tabs">
<ul class="cms-tabset-nav-primary">
<% loop Tabs %>
<li<% if extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% loop $Tabs %>
<li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% end_loop %>
</ul>
</div>
Expand All @@ -29,5 +29,5 @@
$forTemplate
</div>
<% end_with %>

</div>
14 changes: 7 additions & 7 deletions templates/Includes/AssetAdmin_EditForm.ss
@@ -1,25 +1,25 @@
<form $FormAttributes>
<% if Message %>

<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>

<fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>

<% if Actions %>
<% if $Actions %>
<div class="Actions">
<% loop Actions %>
<% loop $Actions %>
$Field
<% end_loop %>
<% if CurrentPage.LinkPreview %>
<% if $CurrentPage.LinkPreview %>
<a href="$CurrentPage.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/AssetAdmin_UploadContent.ss
Expand Up @@ -24,5 +24,5 @@
<i>Not implemented yet</i>
</div>
</div>

</div>
8 changes: 4 additions & 4 deletions templates/Includes/CMSMain_Content.ss
@@ -1,10 +1,10 @@
<div id="pages-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content" data-ignore-tab-state="true">

<div class="cms-content-header north">
<div class="cms-content-header-info">
<% include CMSBreadcrumbs %>
<div class="cms-content-header-info">
<% include CMSBreadcrumbs %>
</div>

<div class="cms-content-header-tabs">
<ul class="cms-tabset-nav-primary">
<li class="content-treeview<% if class == 'CMSPageEditController' %> ui-tabs-active<% end_if %>">
Expand All @@ -29,5 +29,5 @@
$Tools

$EditForm

</div>
14 changes: 7 additions & 7 deletions templates/Includes/CMSMain_EditForm.ss
@@ -1,33 +1,33 @@
<form $FormAttributes data-layout-type="border">

<div class="cms-content-fields center">
<% if Message %>
<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>

<fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>
</div>

<div class="cms-content-actions cms-content-controls south">
<% if Actions %>
<% if $Actions %>
<div class="Actions">
<% loop Actions %>
<% loop $Actions %>
$Field
<% end_loop %>
<% if Controller.LinkPreview %>
<% if $Controller.LinkPreview %>
<a href="$Controller.LinkPreview" target="_cmsPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
<% end_if %>

<% include LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-content" %>
</div>
<% end_if %>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/CMSMain_ListView.ss
Expand Up @@ -7,7 +7,7 @@
</div>

<div class="cms-panel-content center">
<% if TreeIsFiltered %>
<% if $TreeIsFiltered %>
<div class="cms-tree-filtered cms-notice">
<strong><% _t('CMSMain.ListFiltered', 'Filtered list.') %></strong>
<a href="$LinkPages" class="cms-panel-link">
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/CMSMain_TreeView.ss
Expand Up @@ -10,7 +10,7 @@
$ExtraTreeTools

<div class="center">
<% if TreeIsFiltered %>
<% if $TreeIsFiltered %>
<div class="cms-tree-filtered cms-notice">
<strong><% _t('CMSMain.TreeFiltered', 'Filtered tree.') %></strong>
<a href="$LinkPages" class="cms-panel-link">
Expand Down
18 changes: 9 additions & 9 deletions templates/Includes/CMSPageAddController_Content.ss
@@ -1,31 +1,31 @@
<div class="cms-content center $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">
<% with AddForm %>
<% with $AddForm %>
<form $FormAttributes data-layout-type="border">
<div class="cms-content-header north">
<div class="cms-content-header-info">
<h2><% _t('CMSAddPageController.Title','Add page') %></h2>
</div>
</div>

<div class="cms-content-fields center cms-panel-content cms-panel-padded">
<% if Message %>
<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>

<fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
</fieldset>
</div>

<div class="cms-content-actions south">
<% if Actions %>
<% if $Actions %>
<div class="Actions">
<% loop Actions %>
<% loop $Actions %>
$Field
<% end_loop %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/CMSPageHistoryController_Tools.ss
@@ -1,5 +1,5 @@
<div class="cms-content-tools west cms-panel cms-panel-layout" data-expandOnClick="true" data-layout-type="border" id="cms-content-tools-CMSPageHistoryController">

<div class="cms-panel-content cms-helper-hide-actions center">
$VersionsForm
</div>
Expand Down
14 changes: 7 additions & 7 deletions templates/Includes/CMSPagesController_Content.ss
@@ -1,10 +1,10 @@
<div id="pages-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">

<div class="cms-content-header north">
<div class="cms-content-header-info">
<% include CMSBreadcrumbs %>
<div class="cms-content-header-info">
<% include CMSBreadcrumbs %>
</div>

<div class="cms-content-header-tabs">
<ul class="cms-tabset-nav-primary">
<li class="content-treeview<% if ViewState == tree %> ui-tabs-active ss-tabs-force-active<% end_if %> cms-tabset-icon tree">
Expand All @@ -25,11 +25,11 @@
$Tools

<div class="cms-content-fields center ui-widget-content cms-panel-padded">

<div class="cms-content-view cms-panel-deferred" id="cms-content-treeview" data-url="$LinkTreeView">
<%-- Lazy-loaded via ajax --%>
</div>

<div class="cms-content-view cms-panel-deferred" id="cms-content-listview" data-url="$LinkListView" data-deferred-no-cache="true">
<%-- Lazy-loaded via ajax --%>
</div>
Expand All @@ -38,7 +38,7 @@
<i>Not implemented yet</i>
</div>
-->

</div>

</div>
16 changes: 8 additions & 8 deletions templates/Includes/CMSSettingsController_Content.ss
@@ -1,18 +1,18 @@
<div id="settings-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm">

<div class="cms-content-header north">
<% with EditForm %>
<div class="cms-content-header-info">
<% with Controller %>
<% with $EditForm %>
<div class="cms-content-header-info">
<% with $Controller %>
<% include CMSBreadcrumbs %>
<% end_with %>
<% end_with %>
</div>
<% if Fields.hasTabset %>
<% with Fields.fieldByName('Root') %>
<% if $Fields.hasTabset %>
<% with $Fields.fieldByName('Root') %>
<div class="cms-content-header-tabs">
<ul class="cms-tabset-nav-primary">
<% loop Tabs %>
<li<% if extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% loop $Tabs %>
<li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% end_loop %>
</ul>
</div>
Expand Down
12 changes: 6 additions & 6 deletions templates/Includes/CMSSettingsController_EditForm.ss
@@ -1,25 +1,25 @@
<form $FormAttributes>

<% if Message %>
<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>

<fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>

<% if Actions %>
<% if $Actions %>
<div class="Actions">
<% loop Actions %>
<% loop $Actions %>
$Field
<% end_loop %>
<% if Controller.LinkPreview %>
<% if $Controller.LinkPreview %>
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
Expand Down
6 changes: 3 additions & 3 deletions templates/Includes/Install_deleteinstallfiles.ss
@@ -1,10 +1,10 @@
<% if UnsuccessfulFiles %>
<% if $UnsuccessfulFiles %>
<p style=\"margin: 1em 0\">
<%t ContentController.UnableDeleteInstall "Unable to delete installation files. Please delete the files below manually" %>:
</p>
<ul>
<% loop UnsuccessfulFiles %>
<% loop $UnsuccessfulFiles %>
<li>$File</li>
<% end_loop %>
</ul>
Expand All @@ -13,7 +13,7 @@
<%t ContentController.InstallFilesDeleted "Installation files have been successfully deleted." %>
</p>
<p style="margin: 1em 0">
<%t ContentController.StartEditing 'You can start editing your content by opening <a href="{link}">the CMS</a>.' link="admin/" %>
<%t ContentController.StartEditing 'You can start editing your content by opening <a href="{link}">the CMS</a>.' link="admin/" %>
<br />
&nbsp; &nbsp; <%t ContentController.Email "Email" %>: $Username<br />
&nbsp; &nbsp; <%t ContentController.Password "Password" %>: $Password<br />
Expand Down
4 changes: 2 additions & 2 deletions templates/Includes/Install_successfullyinstalled.ss
Expand Up @@ -2,15 +2,15 @@
<%t ContentController.InstallSuccessCongratulations "SilverStripe has been successfully installed!" %>
</p>

<% if Project == 'tutorial' %>
<% if $Project == 'tutorial' %>
<%t ContentController.PostInstallTutorialIntro 'This website is a simplistic version of a SilverStripe 3 site. To extend this, please take a look at {link}.' link='<a href="http://doc.silverstripe.org/framework/en/tutorials">our tutorials</a>' %>
<% end_if %>

<p><strong>&nbsp; &nbsp; <%t ContentController.Email "Email" %>: $Username</strong></br>
<strong>&nbsp; &nbsp; <%t ContentController.Password "Password" %>: $Password</strong></p>

<p>
<%t ContentController.StartEditing 'You can start editing your content by opening <a href="{link}">the CMS</a>.' link="admin/" %>
<%t ContentController.StartEditing 'You can start editing your content by opening <a href="{link}">the CMS</a>.' link="admin/" %>
</p>

<div style="background:#fcf8f2; border-radius:4px; border: 1px solid #ffc28b; padding:5px; margin:5px;">
Expand Down

0 comments on commit f937b95

Please sign in to comment.