Commit 6eed45ad authored by Pat Kira's avatar Pat Kira Committed by Aaron Wells

Artefact view page (bootstrap)

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I8603a4d4e4ecfc27ad877edf4d9f3374c7a72b51
parent b675aae0
......@@ -77,7 +77,7 @@ if ($membership && !$topic->forumsubscribed) {
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => $topic->topicsubscribed ? 'btn btn-default' : 'btn btn-default',
'class' => 'btn btn-default',
'value' => $topic->topicsubscribed ? '<span class="fa fa-times fa-lg text-danger prs"></span>'. get_string('unsubscribefromtopic', 'interaction.forum') : '<span class="fa fa-star fa-lg text-primary prs"></span>' . get_string('subscribetotopic', 'interaction.forum'),
'help' => false
),
......
<h3 class="title">{$title}</h3>
{if $tags}<p class="tags s"><strong>{str tag=tags}:</strong> {list_tags owner=$owner tags=$tags}</p>{/if}
<h3 class="title">
{$title}
</h3>
{if $tags}
<p class="tags s">
<strong>{str tag=tags}:</strong>
{list_tags owner=$owner tags=$tags}
</p>
{/if}
<p>{$description|clean_html|safe}</p>
{if isset($attachments)}
<table class="cb attachments fullwidth">
<table class="attachments fullwidth">
<thead class="expandable-head">
<tr>
<td colspan="2">
......@@ -26,9 +35,9 @@
</tbody>
</table>
{/if}
{if $license}
<div class="artefactlicense">
{$license|safe}
</div>
{/if}
<div class="cb"></div>
\ No newline at end of file
<div class="artefactlicense">
{$license|safe}
</div>
{/if}
\ No newline at end of file
......@@ -3,23 +3,79 @@
<div class="row">
<div class="col-md-9">
{if $notrudeform}<div class="message deletemessage">{$notrudeform|safe}</div>{/if}
{if $notrudeform}
<div class="message deletemessage">
{$notrudeform|safe}
</div>
{/if}
<div class="text-thin pbl">
<span>
{$view->display_title()|safe}
</span>
{if $hasfeed}
<a href="{$feedlink}">
<span class="fa-rss fa pull-right"></span>
</a>
{/if}
</div>
<h1 class="page-header">
{$view->display_title()|safe}
{foreach from=$artefactpath item=a}:
{if $a.url}<a href="{$a.url}">{/if}
{$a.title}
{if $a.url}</a>{/if}
{if $hasfeed}
<a href="{$feedlink}"><span class="fa-rss fa pull-right"></span></a>
{/if}
{foreach from=$artefactpath item=a name='path'}
<span class="subsection-heading">
{if $a.url}
{if $.foreach.path.total == 1}
{$a.title}
{elseif $.foreach.path.last}
| {$a.title}
{else}
<a href="{$a.url}">
{$a.title}
</a>
{/if}
{else}
{$a.title}
{/if}
</span>
{/foreach}
</h1>
<div class="text-right btn-top-right btn-group btn-group-top pull-right">
{if $LOGGEDIN}
<a id="toggle_watchlist_link" class="watchlist btn btn-sm btn-default" href="">
{if $viewbeingwatched}
<span class="fa fa-eye-slash prs"></span>
{else}
<span class="fa fa-eye prs"></span>
{/if}
{if $artefact}
{if $viewbeingwatched}
{str tag=removefromwatchlistartefact section=view arg1=$view->get('title')}
{else}
{str tag=addtowatchlistartefact section=view arg1=$view->get('title')}
{/if}
{else}
{if $viewbeingwatched}
{str tag=removefromwatchlist section=view}
{else}
{str tag=addtowatchlist section=view}
{/if}
{/if}
</a>
{/if}
<!-- <a id="print_link" class="print btn btn-sm btn-default" href="" onclick="window.print(); return false;">
<span class="fa fa-lg fa-print prs"></span>
{str tag=print section=view}
</a> -->
</div>
<div id="view" class="view-pane">
<div id="bottom-pane" class="panel panel-secondary">
<div id="column-container" class="no-heading">
<div id="column-container" class="no-heading ptl">
{$artefact|safe}
</div>
</div>
......
......@@ -6,7 +6,11 @@
</div>
{/if}
{if $maintitle}<h1 id="viewh1" class="page-header">{$maintitle|safe}</h1>{/if}
{if $maintitle}
<h1 id="viewh1" class="page-header">
{$maintitle|safe}
</h1>
{/if}
{if !$microheaders && ($mnethost || $editurl)}
<div class="btn-group btn-group-top">
......
......@@ -22,36 +22,4 @@
{/if}
</ul>
{/if}
<div class="text-right btn-top-right btn-group btn-group-top pull-right">
{if $LOGGEDIN}
<a id="toggle_watchlist_link" class="watchlist btn btn-sm btn-default" href="">
{if $viewbeingwatched}
<span class="fa fa-eye-slash prs"></span>
{else}
<span class="fa fa-eye prs"></span>
{/if}
{if $artefact}
{if $viewbeingwatched}
{str tag=removefromwatchlistartefact section=view arg1=$view->get('title')}
{else}
{str tag=addtowatchlistartefact section=view arg1=$view->get('title')}
{/if}
{else}
{if $viewbeingwatched}
{str tag=removefromwatchlist section=view}
{else}
{str tag=addtowatchlist section=view}
{/if}
{/if}
</a>
{/if}
<a id="print_link" class="print btn btn-sm btn-default" href="" onclick="window.print(); return false;">
<span class="fa fa-lg fa-print prs"></span>
{str tag=print section=view}
</a>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment