Removed all PyAMS related elements from layout
authorThierry Florac <tflorac@ulthar.net>
Sun, 11 Mar 2018 10:56:47 +0100
changeset 13 3894afc93f4e
parent 12 b323ae4712d7
child 14 4e76f8f239c2
Removed all PyAMS related elements from layout
src/pyams_default_theme/templates/layout.pt
--- a/src/pyams_default_theme/templates/layout.pt	Wed Mar 07 16:54:48 2018 +0100
+++ b/src/pyams_default_theme/templates/layout.pt	Sun Mar 11 10:56:47 2018 +0100
@@ -1,7 +1,6 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_default_theme"
 	  tal:define="config extension:configuration;
-				  static extension:static_configuration;
 				  anonymous request.principal.id == '__none__';"
 	  tal:attributes="lang request.locale_name">
 <head>
@@ -23,159 +22,9 @@
 	<!-- end javascript extensions -->
 
 </head>
-<body tal:attributes="class static.body_css_class">
-
-	<!-- Page header -->
-	<header id="header" tal:condition="static.include_header">
-
-		<!-- Logo -->
-		<div id="logo-group">
-			<span id="logo"
-				  tal:define="logo config.logo | nothing"
-				  tal:condition="logo">
-				<a href="/">
-					<img tal:attributes="src extension:absolute_url(logo, '++thumb++200x36.png');" />
-				</a>
-			</span>
-		</div>
-		<!-- end logo -->
-
-		<!-- projects drop-downs -->
-		<div id="top-links" tal:condition="static.include_top_links">
-			<tal:div replace="structure provider:pyams.toplinks" />
-		</div>
-		<!-- end projects drop-downs -->
-
-		<!-- pulled right: nav area -->
-		<div class="pull-right">
-
-			<!-- multiple langs dropdown -->
-			<ul class="header-dropdown-list hidden-xs" tal:condition="static.include_flags">
-				<li tal:content="structure provider:pyams.flags"></li>
-			</ul>
-			<!-- end multiple langs -->
-
-			<!-- collapse menu button -->
-			<div id="hide-menu" class="btn-header pull-right" tal:condition="static.include_menus">
-				<span>
-					<a href="#" title="Hide menu" class="hint" i18n:attributes="title"
-					   data-ams-hint-gravity="ne"><i class="fa fa-bars"></i></a>
-				</span>
-			</div>
-			<!-- end collapse menu -->
-
-			<!-- User avatar and user menus -->
-			<div id="user-menu" class="btn-header pull-right margin-left-10"
-				 tal:condition="not:anonymous">
-				<span class="btn btn-sm btn-success" data-toggle="dropdown">
-					<tal:var define="profile extension:public_profile(request)">
-						<tal:if condition="profile.avatar">
-							<img tal:define="src extension:absolute_url(profile.avatar)"
-								 tal:attributes="src string:${src}/++thumb++square:32x32.png" />
-						</tal:if>
-						<tal:if condition="not:profile.avatar">
-							<i class="fa fa-user img hint" data-ams-hint-gravity="ne"
-							   title="Update your profile to select an avatar..." i18n:attributes="title"></i>
-						</tal:if>
-						<i class="fa fa-caret-down pull-right padding-y-5"></i>
-					</tal:var>
-				</span>
-				<tal:var content="structure provider:pyams.user_menus" />
-			</div>
-			<!-- end user avatar -->
-
-			<tal:var define="shortcuts provider:pyams.shortcuts;
-							 display_shortcuts (not anonymous) and shortcuts and static.include_user_shortcuts"
-					 condition="display_shortcuts">
-				<!-- user shortcuts -->
-				<div class="btn-header pull-right" tal:condition="static.include_menus">
-					<span>
-						<a href="#" title="My shortcuts" id="show-shortcuts" class="hint" i18n:attributes="title"
-						   data-ams-hint-gravity="ne"><i class="fa fa-bookmark-o"></i></a>
-					</span>
-				</div>
-				<div id="shortcuts">
-					<tal:var content="structure shortcuts" />
-					<div tal:condition="static.version_location == 'shortcuts'" class="version">
-						<tal:var content="static.application_name" /> - version <tal:var content="static.version" />
-					</div>
-				</div>
-				<!-- end user shortcuts -->
-			</tal:var>
-
-			<tal:if condition="static.include_user_activity and not anonymous">
-				<tal:var define="activity provider:pyams.activity"
-						 condition="activity">
-					<!-- user notifications button -->
-					<div id="user-activity" class="btn-header pull-right" tal:condition="static.include_menus">
-						<span>
-							<a href="#" title="Notifications" class="activity-button hint" i18n:attributes="title"
-							   data-ams-hint-gravity="ne"><i class="fa fa-bell"></i></a>
-							<b class="badge bg-color-danger txt-color-white hidden">0</b>
-							<!-- AJAX-dropdown -->
-							<div class="ajax-dropdown"
-								 tal:content="structure activity">
-							</div>
-							<!-- end AJAX-dropdown -->
-						</span>
-					</div>
-					<!-- end user notifications -->
-				</tal:var>
-			</tal:if>
-
-			<tal:if condition="static.include_mobile_search">
-				<!-- search mobile button (this is hidden till mobile view port) -->
-				<tal:var content="structure provider:pyams.mobile_search" />
-				<!-- end search mobile button -->
-			</tal:if>
-
-			<tal:if condition="static.include_site_search">
-				<!-- site search field -->
-				<tal:var content="structure provider:pyams.site_search" />
-				<!-- end site search field -->
-			</tal:if>
-
-		</div>
-		<!-- end nav area -->
-
-	</header>
-	<!-- end page header -->
-
-	<!-- Menus panel -->
-	<aside id="left-panel" tal:condition="static.include_menus">
-
-		<!-- AJAX progress gear -->
-		<div id="ajax-gear"><i class="fa fa-2x fa-spin fa-gear"></i></div>
-		<!-- Navigation menus -->
-		<nav tal:content="structure provider:pyams.menus"></nav>
-		<span class="minifyme" style=""> <i class="fa fa-arrow-circle-left hit"></i> </span>
-
-		<div tal:condition="static.version_location == 'menus'" class="version">
-			<!-- Application version -->
-			<tal:var content="static.application_name" /> - version <tal:var content="static.version" />
-		</div>
-	</aside>
-	<!-- end menus panel -->
-
+<body class="no-margin no-padding">
 	<!-- Main panel -->
-	<div id="main" role="main">
-
-		<!-- Ribbon -->
-		<div id="ribbon" tal:condition="static.include_ribbon">
-			<!-- Refresh button -->
-			<span class="ribbon-button-alignment">
-				<span id="refresh" class="btn btn-ribbon hint" data-ams-hint-gravity="w" data-ams-hint-html="true"
-					  title="&lt;span&gt;&lt;i class=&#39;text-warning fa fa-warning&#39;&gt;&lt;/i&gt; WARNING: this will reset all your widgets status!&lt;/span&gt;"
-					  tal:condition="static.include_reload_button" i18n:attributes="title">
-					<i class="fa fa-refresh"></i>
-				</span>
-			</span>
-			<!-- breadcrumb -->
-			<ol class="breadcrumb">
-				<tal:var content="structure provider:pyams.breadcrumbs" />
-			</ol>
-		</div>
-		<!-- end ribbon -->
+	<div id="main" class="no-margin" role="main">
 
 		<!-- Content -->
 		<div id="content" style="opacity: 1;">