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

Artefact view page (bootstrap)

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I8603a4d4e4ecfc27ad877edf4d9f3374c7a72b51
parent b675aae0
...@@ -77,7 +77,7 @@ if ($membership && !$topic->forumsubscribed) { ...@@ -77,7 +77,7 @@ if ($membership && !$topic->forumsubscribed) {
'submit' => array( 'submit' => array(
'type' => 'button', 'type' => 'button',
'usebuttontag' => true, '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'), '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 'help' => false
), ),
......
<h3 class="title">{$title}</h3> <h3 class="title">
{if $tags}<p class="tags s"><strong>{str tag=tags}:</strong> {list_tags owner=$owner tags=$tags}</p>{/if} {$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> <p>{$description|clean_html|safe}</p>
{if isset($attachments)} {if isset($attachments)}
<table class="cb attachments fullwidth"> <table class="attachments fullwidth">
<thead class="expandable-head"> <thead class="expandable-head">
<tr> <tr>
<td colspan="2"> <td colspan="2">
...@@ -26,9 +35,9 @@ ...@@ -26,9 +35,9 @@
</tbody> </tbody>
</table> </table>
{/if} {/if}
{if $license} {if $license}
<div class="artefactlicense"> <div class="artefactlicense">
{$license|safe} {$license|safe}
</div> </div>
{/if} {/if}
<div class="cb"></div> \ No newline at end of file
\ No newline at end of file
...@@ -3,23 +3,79 @@ ...@@ -3,23 +3,79 @@
<div class="row"> <div class="row">
<div class="col-md-9"> <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"> <h1 class="page-header">
{$view->display_title()|safe} {foreach from=$artefactpath item=a name='path'}
{foreach from=$artefactpath item=a}: <span class="subsection-heading">
{if $a.url}<a href="{$a.url}">{/if} {if $a.url}
{$a.title} {if $.foreach.path.total == 1}
{if $a.url}</a>{/if} {$a.title}
{if $hasfeed} {elseif $.foreach.path.last}
<a href="{$feedlink}"><span class="fa-rss fa pull-right"></span></a> | {$a.title}
{/if} {else}
<a href="{$a.url}">
{$a.title}
</a>
{/if}
{else}
{$a.title}
{/if}
</span>
{/foreach} {/foreach}
</h1> </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="view" class="view-pane">
<div id="bottom-pane" class="panel panel-secondary"> <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} {$artefact|safe}
</div> </div>
</div> </div>
......
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
</div> </div>
{/if} {/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)} {if !$microheaders && ($mnethost || $editurl)}
<div class="btn-group btn-group-top"> <div class="btn-group btn-group-top">
......
...@@ -22,36 +22,4 @@ ...@@ -22,36 +22,4 @@
{/if} {/if}
</ul> </ul>
{/if} {/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> </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