Commit e618ed73 authored by Pat Kira's avatar Pat Kira Committed by Robert Lyon
Browse files

Remove whitespace classes (bug: 1465107)

behatnotneeded: styling only

Change-Id: Ie47b903e93816c7bac53437bdbb3842020a0effe
parent 51a0dd57
{**
* This template displays a blog post.
*}
<div id="blogpost-{$postid}" class="ptl">
<div id="blogpost-{$postid}" class="panel-body flush">
{if $artefacttitle && $simpledisplay}
<h3 class="title">
......@@ -9,8 +10,8 @@
</h3>
{/if}
<div class="postdetails metadata mbm">
<span class="icon icon-calendar mrs"></span>
<div class="postdetails metadata">
<span class="icon icon-calendar left"></span>
{$postedbyon}
</div>
......@@ -22,10 +23,12 @@
</div>
{/if}
<div class="postcontent">
{$artefactdescription|clean_html|safe}
</div>
{if $license}
<div class="postlicense mtm mbl">
<div class="license">
{$license|safe}
</div>
{/if}
......@@ -33,12 +36,12 @@
{if isset($attachments)}
<div class="has-attachment panel panel-default collapsible">
<h5 class="panel-heading">
<a class="text-left pts pbm collapsed" aria-expanded="false" href="#blog-attach-{$postid}" data-toggle="collapse">
<span class="icon prm icon-paperclip"></span>
<a class="text-left collapsed" aria-expanded="false" href="#blog-attach-{$postid}" data-toggle="collapse">
<span class="icon left icon-paperclip"></span>
<span class="text-small">{str tag=attachedfiles section=artefact.blog}</span>
<span class="metadata">({$attachments|count})</span>
<span class="icon pts icon-chevron-down pull-right collapse-indicator"></span>
<span class="icon icon-chevron-down pull-right collapse-indicator"></span>
</a>
</h5>
<!-- Attachment list with view and download link -->
......@@ -53,12 +56,12 @@
</a>
{if $item->iconpath}
<img src="{$item->iconpath}" alt="">
<img class="file-icon" src="{$item->iconpath}" alt="">
{else}
<span class="icon icon-{$item->artefacttype} icon-lg text-default"></span>
<span class="icon icon-{$item->artefacttype} icon-lg text-default left"></span>
{/if}
<span class="title list-group-item-heading plm inline">
<span class="title list-group-item-heading inline">
<a href="{$item->viewpath}" class="inner-link">
{$item->title}
</a>
......@@ -67,7 +70,7 @@
</span>
</span>
<span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
<span class="icon icon-download icon-lg pull-right text-watermark icon-action"></span>
</li>
{/foreach}
</ul>
......
{include file="header.tpl"}
<div class="btn-top-right btn-group btn-group-top">
<a class="btn btn-default addpost" href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">
<span class="icon icon-lg icon-plus prs"></span>
<span class="icon icon-lg icon-plus left"></span>
{str section="artefact.blog" tag="addpost"}
</a>
{if !$blog->get('locked')}
<a class="btn btn-default settings" href="{$WWWROOT}artefact/blog/settings/index.php?id={$blog->get('id')}">
<span class="icon icon-lg icon-cogs prs"></span>
<span class="icon icon-lg icon-cogs left"></span>
{str section="artefact.blog" tag="settings"}
</a>
{/if}
</div>
<div id="myblogs" class="myblogs rel ptxl mtxl">
<div id="blogdescription" class="blogdescription">
<div id="myblogs" class="myblogs view-container">
<p id="blogdescription">
{clean_html($blog->get('description'))|safe}
</div>
</p>
{if $blog->get('tags')}
<div class="tags">
<strong>{str tag=tags}:</strong> {list_tags owner=$blog->get('owner') tags=$blog->get('tags')}
......@@ -22,7 +22,7 @@
{/if}
{if $posts}
<div id="postlist" class="ptl list-group list-group-lite">
<div id="postlist" class="postlist list-group list-group-lite">
{$posts.tablerows|safe}
</div>
<div id="blogpost_page_container" class="hidden">{$posts.pagination|safe}</div>
......@@ -39,12 +39,12 @@
{/if}
{if $enablemultipleblogstext}
<p class="alert alert-default mtl">
<p class="alert alert-default">
{str tag=enablemultipleblogstext section=artefact.blog arg1=$WWWROOT}</p>
{/if}
{if $hiddenblogsnotification}
<p class="lead text-center ptl">
<p class="lead text-center">
{str tag=hiddenblogsnotification section=artefact.blog arg1=$WWWROOT}</p>
{/if}
</div>
......
{foreach from=$posts item=post}
<div class="post list-group-item clearfix">
<div class="post list-group-item clearfix flush">
<div class="post-heading">
<h4 class="title">
<a href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$options.viewid}">{$post->title}</a>
</h4>
<div class="postdetails metadata">
<span class="icon icon-calendar mrs"></span>
<span class="icon icon-calendar left"></span>
{$post->postedby}
</div>
{if $post->tags}
<div class="tags metadata">
<span class="icon icon-tags"></span>
<span class="icon icon-tags left"></span>
<strong>{str tag=tags}:</strong>
{list_tags owner=$post->owner tags=$post->tags}
</div>
{/if}
</div>
<div class="post-content mtl">
<div class="content-text">
{$post->description|clean_html|safe}
</div>
{if $post->files}
<div class="has-attachment panel panel-default collapsible mbm" id="blockpostfiles-{$post->id}">
<div class="has-attachment panel panel-default collapsible" id="blockpostfiles-{$post->id}">
<h5 class="panel-heading">
<a class="text-left pbm collapsed" data-toggle="collapse" href="#post-attach-{$post->id}" aria-expanded="false">
<span class="icon icon-paperclip right"></span>
<a class="text-left collapsed" data-toggle="collapse" href="#post-attach-{$post->id}" aria-expanded="false">
<span class="icon icon-paperclip left"></span>
<span class="text-small"> {str tag=attachedfiles section=artefact.blog} </span>
<span class="metadata">
({$post->files|count})
......@@ -34,7 +34,7 @@
</a>
</h5>
<div class="collapse" id="post-attach-{$post->id}">
<ul class="list-group mb0">
<ul class="list-group list-unstyled">
{foreach from=$post->files item=file}
<li class="list-group-item">
<a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}&amp;view={$options.viewid}" class="outer-link icon-on-hover">
......@@ -43,11 +43,11 @@
</span>
</a>
{if $file->icon}
<img src="{$file->icon}" alt="">
<img class="file-icon" src="{$file->icon}" alt="">
{else}
<span class="icon icon-{$file->artefacttype} icon-lg text-default"></span>
<span class="icon icon-{$file->artefacttype} icon-lg text-default left"></span>
{/if}
<span class="title plm inline">
<span class="title">
<a href="{$WWWROOT}artefact/artefact.php?artefact={$file->attachment}&view={$options.viewid}" class="inner-link">
{$file->title}
<span class="metadata"> -
......@@ -55,7 +55,7 @@
</span>
</a>
</span>
<span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
<span class="icon icon-download icon-lg pull-right text-watermark icon-action"></span>
</li>
{/foreach}
</ul>
......@@ -94,7 +94,7 @@
{if $post->allowcomments}
<a class="addcomment pull-right" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$options.viewid}">
{str tag=addcomment section=artefact.comment}
<span class="icon icon-arrow-right pls"></span>
<span class="icon icon-arrow-right right"></span>
</a>
{/if}
</div>
......
......@@ -2,15 +2,15 @@
<div class="list-group list-group-lite">
{foreach from=$data item=item}
<div id="comment{$item->id}" class="comment-item list-group-item {if $item->pubmessage}list-group-item-warning{elseif $item->deletedmessage}deleted {/if} {cycle name=rows values='r0,r1'} {if $item->indent} indent-{$item->indent}{/if} {if !$item->deletedmessage && $item->attachments}has-attachment{/if}">
<div class="comment-heading clearfix">
<span class="user-icon small-icon pull-left mls mts mrm">
<div class="usericon-heading">
<span class="user-icon pull-left">
{if $item->author}
<img src="{profile_icon_url user=$item->author maxheight=40 maxwidth=40}" valign="middle" alt="{str tag=profileimagetext arg1=$item->author|display_default_name}"/>
{else}
<img src="{profile_icon_url user=null maxheight=40 maxwidth=40}" valign="middle" alt="{str tag=profileimagetextanonymous}"/>
{/if}
</span>
<h5 class="pull-left">
<h5 class="pull-left list-group-item-heading">
{if $item->author}
<a href="{$item->author->profileurl}">
{/if}
......@@ -30,7 +30,7 @@
</span>
{if $item->ratingdata}
<span class="star-comment-rating ptm plm">
<span class="star-comment-rating">
{for i $item->ratingdata->min_rating $item->ratingdata->max_rating}
{if !$item->ratingdata->export}
<input name="star{$item->id}" type="radio" class="star" {if $i === $item->ratingdata->value} checked="checked" {/if} disabled="disabled" />
......@@ -85,7 +85,7 @@
{/if}
{if $item->makepublicrequested && !$item->deletedmessage}
<span class="icon icon-lock text-default prs"></span>
<span class="icon icon-lock text-default left"></span>
<span>{str tag=youhaverequestedpublic section=artefact.comment}</span>
{/if}
</div>
......@@ -97,13 +97,13 @@
<div class="panel panel-default has-attachment collapsible">
<h4 class="panel-heading">
<a class="collapsible collapsed" aria-expanded="false" href="#attachments_{$item->id}" data-toggle="collapse">
<span class="icon prm icon-paperclip"></span>
<span class="icon left icon-paperclip"></span>
<span class="text-small">{str tag=Attachments section=artefact.comment} ({$item->filescount})</span>
<span class="icon icon-chevron-down pull-right collapse-indicator"></span>
</a>
</h4>
<div id="attachments_{$item->id}" class="collapse" aria-expanded="false">
<ul class=" list-group list-group-unbordered mb0">
<ul class=" list-group list-group-unbordered">
{strip}
{foreach $item->attachments item=a name=attachments}
<li class="list-group-item">
......@@ -112,11 +112,11 @@
</a>
<span class="title">
{$a->attachtitle}
<span class="attachsize metadata pls">
- [{$a->attachsize}]
<span class="attachsize metadata">
[{$a->attachsize}]
</span>
</span>
<span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
<span class="icon icon-download icon-lg pull-right text-watermark icon-action"></span>
</li>
{/foreach}
{/strip}
......
<ul class="list-group mb0">
<ul class="list-group">
{foreach $files file}
<li class="filedownload-item list-group-item">
<a href="{$file.downloadurl}" class="outer-link icon-on-hover">
......@@ -8,12 +8,12 @@
</a>
{if $file.iconsrc}
<img src="{$file.iconsrc}" alt="" class="text-inline" />
<img src="{$file.iconsrc}" alt="" class="file-icon text-inline" />
{else}
<span class="icon icon-{$file.artefacttype} icon-lg icon-file"></span>
<span class="icon icon-{$file.artefacttype} icon-lg left"></span>
{/if}
<h4 class="title list-group-item-heading plm text-inline">
<h4 class="title list-group-item-heading text-inline">
<a href="{$WWWROOT}artefact/artefact.php?artefact={$file.id}&view={$viewid}" class="inner-link">
{$file.title}
<span class="sr-only">
......@@ -25,9 +25,9 @@
{$file.ctime|format_date:'strftimedaydate'}
[{$file.size|display_size}]
</span>
<span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
<span class="icon icon-download icon-lg pull-right text-watermark icon-action"></span>
{if $file.description}
<div class="description ptm">
<div class="file-description">
<p class="text-small">
{$file.description}
</p>
......
......@@ -8,7 +8,7 @@
<img src="{$image.source}" alt="{$image.title}" title="{$image.title}" class="center-block">
{if $showdescription && $image.title}
<div class="carousel-caption prm plm pbm ptm" id="description_{$instanceid}_{$k}">
<div class="carousel-caption" id="description_{$instanceid}_{$k}">
{$image.title}
</div>
{/if}
......
<div id="thumbnails{$instanceid}" class="panel-body thumbnails ptl js-masonry">
<div id="thumbnails{$instanceid}" class="panel-body thumbnails js-masonry">
{foreach from=$images item=image}
<div {if $image.squaredimensions}style="width:{$image.squaredimensions}px;height:{$image.squaredimensions}px;"{/if} class="thumb mts mbs mrs mls ptm">
<div {if $image.squaredimensions}style="width:{$image.squaredimensions}px;height:{$image.squaredimensions}px;"{/if} class="thumb">
<a rel="{$image.slimbox2}" href="{$image.link}" title="{$image.title}" target="_blank">
<img src="{$image.source}" alt="{$image.title}" title="{$image.title}" width="{if $image.width}{$image.width}{else}{$width}{/if}" height="{if $image.height}{$image.height}{else}{$width}{/if}" {if $frame}class="frame center-block pbm"{/if}/>
<img src="{$image.source}" alt="{$image.title}" title="{$image.title}" width="{if $image.width}{$image.width}{else}{$width}{/if}" height="{if $image.height}{$image.height}{else}{$width}{/if}" {if $frame}class="frame center-block"{/if}/>
</a>
{if $showdescription && $image.title}
<p class="text-small prs pls">
<p class="text-small title">
{$image.title|truncate:60|safe}
</p>
{/if}
......
<div id="thumbnails{$instanceid}" class="panel-body thumbnails js-masonry">
{foreach from=$images item=image}
<div style="width: {$width * 1.5}px;" class="thumb mts mbs mrs mls ptm">
<div style="width: {$width * 1.5}px;" class="thumb">
<a rel="{$image.slimbox2}" href="{$image.link}" title="{$image.title}" target="_blank">
<img src="{$image.source}" {if $image.height}height="{$image.height}"{/if} alt="{$image.title}" title="{$image.title}" {if $frame}class="frame center-block pbm"{/if} />
<img src="{$image.source}" {if $image.height}height="{$image.height}"{/if} alt="{$image.title}" title="{$image.title}" {if $frame}class="frame center-block"{/if} />
</a>
{if $showdescription && $image.title}
<p class="text-small prs pls">
<p class="text-small title">
{$image.title|truncate:60|safe}
</p>
{/if}
......@@ -14,7 +14,7 @@
</div>
{if isset($copyright)}
<div id="lbBottom">
<div id="lbBottom" class="license">
{$copyright|safe}
</div>
{/if}
......
{include file="header.tpl"}
{if $file}
<h5>{$file->get('title')}</h5>
{if $zipinfo}
<p>
<span><strong>{str tag=Files section=artefact.file}:</strong> {$zipinfo->files}&nbsp;</span>
<span><strong>{str tag=Folders section=artefact.file}:</strong> {$zipinfo->folders}</span>
<span><strong>{str tag=spacerequired section=artefact.file}:</strong> {$zipinfo->displaysize}</span>
</p>
{/if}
<div class="mtl-md mbl-md">
{if $quotaerror}
{$quotaerror|safe}
{else}
{$message}
{/if}
</div>
{if $zipinfo}
{$form|safe}
<p>
<div><strong>{str tag=Contents section=artefact.file}:</strong></div>
{foreach from=$zipinfo->names item=name}
<div>{$name}</div>
{/foreach}
</p>
{/if}
{if $zipinfo}
<h3>{$file->get('title')}</h3>
<div class="row">
<div class="col-md-6">
<p class="detail">
<strong>{str tag=Files section=artefact.file}:</strong>
{$zipinfo->files}
<br>
<strong>{str tag=Folders section=artefact.file}:</strong>
{$zipinfo->folders}
<br>
<strong>{str tag=spacerequired section=artefact.file}:</strong>
{$zipinfo->displaysize}
</p>
{if $quotaerror}
{$quotaerror|safe}
{else}
<div class="alert alert-info">
{$message}
</div>
{/if}
{$form|safe}
</div>
<div class="col-md-6">
<div class="extract-files">
<h4>{str tag=Contents section=artefact.file}:</h4>
<ul class="list-group list-group-unbordered text-small">
{foreach from=$zipinfo->names item=name}
<li class="list-group-item">{$name}</li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
{/if}
{include file="footer.tpl"}
......@@ -2,7 +2,7 @@
<h3 class="title">
{str tag=Preview section=artefact.file}
</h3>
<div class="filedata-icon pull-left prxl mrxl pbxl">
<div class="filedata-icon">
<a href="{$downloadpath}">
<img src="{$downloadpath}&maxwidth=400&maxheight=180" alt="">
</a>
......
{if $description}
<p class="ptl text-small description">
<div class="content-text">
{$description}
</p>
</div>
{/if}
{if $tags}
<div class="tags">
<span class="lead text-small">{str tag=tags}</span>:
<strong>{str tag=tags}</strong>:
{list_tags owner=$owner tags=$tags}
</div>
{/if}
......@@ -18,9 +18,9 @@
</h4>
<div class="fullwidth">
<ul class="list-group mb0 pl0">
<ul class="list-group">
{foreach from=$children item=child}
<li class="{cycle values='r0,r1'} filedownload-item list-group-item">
<li class="filedownload-item list-group-item">
{if $child->artefacttype != 'folder'}
<a href="{$WWWROOT}artefact/file/download.php?file={$child->id}&amp;view={$viewid}" class="outer-link icon-on-hover">
<span class="sr-only">
......@@ -31,9 +31,9 @@
{/if}
{if $child->iconsrc}
<img src="{$child->iconsrc}" alt="{$child->artefacttype}" class="text-inline prm">
<img src="{$child->iconsrc}" alt="{$child->artefacttype}" class="file-icon text-inline">
{else}
<span class="icon icon-{$child->artefacttype} icon-lg prm"></span>
<span class="icon icon-{$child->artefacttype} icon-lg left"></span>
{/if}
<h4 class="title list-group-item-heading text-inline">
<a class="inner-link" href="{$WWWROOT}artefact/artefact.php?artefact={$child->id}&amp;view={$viewid}" title="{$child->hovertitle}">
......@@ -46,7 +46,7 @@
{/if}
</h4>
{if $child->artefacttype != 'folder'}
<span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
<span class="icon icon-download icon-lg pull-right text-watermark icon-action"></span>
{/if}
{if $child->description}
<p class="file-description text-small text-lighttone">
......
......@@ -19,7 +19,7 @@
<label for="{$prefix}_edit_tags">{str tag=tags}</label>
<input name="{$prefix}_edit_tags" id="{$prefix}_edit_tags" class="text" type="text" value="{foreach from=$fileinfo->tags item=tag name=tags}{if !$.foreach.tags.first}, {/if}{$tag}{/foreach}" />
<span>{contextualhelp plugintype='artefact' pluginname='file' section='tags'}</span>
<div class="description">{str tag=tagsdescprofile}</div>
<div class="file-description">{str tag=tagsdescprofile}</div>
</div>
{if $groupinfo}
<div>
......@@ -80,7 +80,7 @@
<input type="submit" class="cancel" name="{$prefix}_canceledit" id="{$prefix}_edit_cancel" value="{str tag=cancel}" />
</div>
<div>
<div id="{$prefix}_edit_messages" class="ptm">
<div id="{$prefix}_edit_messages">
</div>
</div>
</div>
......
......@@ -17,7 +17,7 @@
<div id="{$prefix}_upload_browse" class="filebrowser in-collapsible">
{else}
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#{$prefix}_upload_browse">
<span class="icon icon-paperclip icon-lg prs"></span>
<span class="icon icon-paperclip icon-lg left"></span>
{str tag=addafile section=artefact.file}
</button>
<div id="{$prefix}_upload_browse" class="modal fade js-filebrowser" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
......@@ -57,20 +57,24 @@
{* config.simpleupload: the form only contains a file chooser *}
{* config.submitbutton: add submit button even if js is enabled & don't start uploading as soon as a file is chosen *}
<input type="hidden" name="{$prefix}_uploadnumber" id="{$prefix}_uploadnumber" value="1" />
<input type="hidden" name="{$prefix}_uploadnumber" id="{$prefix}_uploadnumber" value="1"/>
<input type="hidden" name="MAX_FILE_SIZE" value="{$phpmaxfilesize}" />
<div id="{$prefix}_upload_messages"></div>
{if $config.uploadagreement}
<div id="{$prefix}_agreement" class="uploadform clearfix">
<label for="{$prefix}_notice">{str tag='uploadfile' section='artefact.file'}</label>
<input type="checkbox" name="{$prefix}_notice" id="{$prefix}_notice" />
{$agreementtext|clean_html|safe}
<div id="{$prefix}_agreement" class="uploadform">
<label class="lead" for="{$prefix}_notice">
{str tag='uploadfile' section='artefact.file'}
</label>
<p>
<input type="checkbox" name="{$prefix}_notice" id="{$prefix}_notice" />
{$agreementtext|clean_html|safe}
</p>
</div>
{/if}
<div class="uploadform userfile clearfix ptl">
<label for="{$prefix}_userfile">
<div class="uploadform userfile">
<label class="lead" for="{$prefix}_userfile">
{if $config.simpleupload}
{str tag='uploadfile' section='artefact.file'}
{else}
......@@ -78,7 +82,7 @@
{/if}
</label>
<span id="{$prefix}_userfile_container"><input type="file" class="file" {$accepts|safe} id="{$prefix}_userfile" name="userfile[]" multiple size="20" /></span>
<span id="{$prefix}_userfile_maxuploadsize" class="description">({str tag=maxuploadsize section=artefact.file} {$maxuploadsize})</span>
<span id="{$prefix}_userfile_maxuploadsize" class="file-description">({str tag=maxuploadsize section=artefact.file} {$maxuploadsize})</span>
{if $config.uploadagreement}
<script>setNodeAttribute('{$prefix}_userfile', 'disabled', true);</script>
......@@ -91,7 +95,7 @@
</div>
</div>
<div class="uploadform clearfix pbl">
<div class="uploadform clearfix">
<div id="{$prefix}_uploadsubmit_container">
{* filebrowser.js may add a submit button in here even if config.submitbutton is off *}
......@@ -104,11 +108,10 @@
</div>
{if $config.resizeonuploaduseroption}
<div id="{$prefix}_resizeonuploaduseroption" class="description mbl">
{str tag='resizeonuploadenablefilebrowser1' section='artefact.file' arg1=$resizeonuploadmaxwidth arg2=$resizeonuploadmaxheight}
<div id="{$prefix}_resizeonuploaduseroption" class="form-group help-inline">
<input type=<