Skip to content
Snippets Groups Projects
Commit 43ddd347 authored by Nick Barry's avatar Nick Barry
Browse files

Add preview ribbon on bulletin preview page

parent 4b281db3
No related branches found
No related tags found
2 merge requests!20Projects Task 43,!19Projects Task 43
...@@ -17,7 +17,7 @@ $proposedSection = Bulletin_SectionModel::parseHtml($this->proposedFileContents, ...@@ -17,7 +17,7 @@ $proposedSection = Bulletin_SectionModel::parseHtml($this->proposedFileContents,
<div id="decisionMessage"><?php echo $this->decisionMessage;?></div> <div id="decisionMessage"><?php echo $this->decisionMessage;?></div>
<?php } ?> <?php } ?>
<a href="/bulletin/view/preview/id/<?php echo $this->id; ?>" target="_blank">Preview</a> <a href="/bulletin/view/preview/id/<?php echo $this->id; ?>" target="_blank">Preview Bulletin Page</a>
<div class="wdn-grid-set-halves"> <div class="wdn-grid-set-halves">
<div class="current wdn-col"> <div class="current wdn-col">
......
...@@ -69,3 +69,29 @@ $this->contentTitle = ($this->section->getMajor() ? $this->section->getMajor() : ...@@ -69,3 +69,29 @@ $this->contentTitle = ($this->section->getMajor() ? $this->section->getMajor() :
</div> </div>
</div> </div>
</div> </div>
<div id="ribbon"></div>
<style>
#ribbon {
display: none;
}
@media (min-width:745px) {
#ribbon {
display: inline;
position: fixed;
top: 0;
left: 0;
width: 35px;
color: #ffffff;
font-size: 12px;
height: 100%;
z-index: 5000;
-webkit-box-shadow: 0px 0px 3px 0px #c00000;
-moz-box-shadow: 0px 0px 3px 0px #c00000;
box-shadow: 0px 0px 3px 0px #c00000;
background-color: #c00000;
opacity: 0.8;
background-image: url("images/preview-ribbon.png");
background-repeat: repeat-y;
}
}
</style>
\ No newline at end of file
document_root/images/preview-ribbon.png

1.54 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment