This repository has been archived by the owner on Jul 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issuesAndFixes' of github.com:delving/culture-hub into …
…issuesAndFixes Conflicts: app/views/DObjects/dobject.html public/themes/common/stylesheets/helpers.css public/themes/default/stylesheets/style.less
- Loading branch information
Showing
2 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<div class="toolbar"> | ||
<div class="buttons"> | ||
#{btnHref label: viewUtils.getKey('thing.label'), extraClass:"left", iconClass:"icon202", id:"addLabel" /} | ||
#{btnHref label:viewUtils.getKey('thing.comment'), extraClass:"right", iconClass:"icon201", id:"addComment"/} | ||
<div class="addthis_toolbox addthis_default_style" style="display:table-cell; width:auto;"> | ||
#{btnHref extraClass:"addthis_button_email left", iconClass:"icon125", label: viewUtils.getKey('ui.label.email')/} | ||
#{btnHref extraClass:"addthis_button_print middle", iconClass:"icon153", label: viewUtils.getKey('ui.label.print')/} | ||
#{btnHref extraClass:"addthis_button_compact right", iconClass:"icon203", label: viewUtils.getKey('ui.label.share')/} | ||
<a class="addthis_counter addthis_bubble_style" style="margin-top: 10px;"></a> | ||
</div> | ||
|
||
|
||
#{if userName == browsedUserName} | ||
<a class="button clear red fright" id="remove"> | ||
<span class="label">${viewUtils.getKey('ui.label.remove', viewUtils.getKey('thing.object'))}</span> | ||
</a> | ||
<div id="removeConfirmation" title="&{'thing.confirmation'}" style="display: none;"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>&{'dobject.confirmDeletion'}</p></div> | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
remove('#remove', '#removeConfirmation', '/${dobject.userName}/object/${dobject._id}/remove', '/${dobject.userName}/object'); | ||
}); | ||
</script> | ||
#{btnHref label:viewUtils.getKey('ui.label.edit'), extraClass:"fright", iconClass:"icon145", href:"/${dobject.userName}/object/${dobject._id}/update" /} | ||
#{/} | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
<div id="add-label-dialog" title="${viewUtils.getKey('ui.label.addcomment')}"> | ||
<form action="#" method="GET" class="box"> | ||
<div class="field"> | ||
<label class="label">&{'thing.label'}</label> | ||
|
||
<div class="inputs"> | ||
<input type="text" class="textinput"/> | ||
#{btnButton label:viewUtils.getKey('ui.label.add'), id:"addLabelSubmit"/} | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<div id="add-comment-dialog" title="${viewUtils.getKey('ui.label.addcomment')}"> | ||
<form action="#" method="GET" class="box"> | ||
<div class="field"> | ||
<label class="label">&{'thing.comment'}</label> | ||
|
||
<div class="inputs"> | ||
<textarea name="comment" id="comment"></textarea> | ||
#{btnButton label:viewUtils.getKey('ui.label.add'), id:"addCommentSubmit"/} | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eba66af675dc720"></script> | ||
<script> | ||
$(function() { | ||
var addthis_config = { | ||
ui_use_css: true, | ||
ui_language: "nl" | ||
} | ||
|
||
$("#addLabel").click(function() { | ||
if ($("#add-comment.dialog")) { | ||
$("#addComment").removeClass("on"); | ||
$("#add-comment-dialog").hide("slow"); | ||
} | ||
$("#add-label-dialog").show("slow"); | ||
$(this).addClass("on"); | ||
}); | ||
$("#addComment").click(function() { | ||
if ($("#add-label.dialog")) { | ||
$("#addLabel").removeClass("on"); | ||
$("#add-label-dialog").hide("slow"); | ||
} | ||
$("#add-comment-dialog").show("slow"); | ||
$(this).addClass("on"); | ||
}); | ||
}); | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters