308 lines
9.2 KiB
HTML
308 lines
9.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>SparkleShare Event Log</title>
|
|
<script type="text/javascript" src="<!-- $jquery-url -->"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$('.comments-wrapper').each (function () {
|
|
if ($(this).find ('.comments').children ().size () < 1) {
|
|
$(this).hide ();
|
|
} else {
|
|
$(this).css ('cursor', 'default');
|
|
}
|
|
});
|
|
|
|
$('.buddy-icon').each (function () {
|
|
if ($(this).css('backgroundImage').indexOf ('@') != -1) {
|
|
$(this).css ('backgroundColor', '#fff');
|
|
}
|
|
});
|
|
|
|
// Show the form when 'Add note' is clicked
|
|
$('.note').click(function () {
|
|
$(this).parent ().find ('.comments-wrapper').show ();
|
|
//$(this).parent ().find ('.comments-wrapper').css ('cursor', 'default');
|
|
});
|
|
|
|
// Hide the 'Show all' link when there are less than 10 events
|
|
$('.show').each (function () {
|
|
var entries = $(this).parent ().find ('dl').children ().length;
|
|
|
|
if (entries <= 10) {
|
|
$(this).hide ();
|
|
} else {
|
|
// Append the number of entries
|
|
$(this).html ('Show all ' + entries);
|
|
}
|
|
});
|
|
|
|
// When 'Show all' is clicked, show all collapsed events
|
|
$('.show').click(function () {
|
|
$(this).parent ().find ('dl').children ().show ();
|
|
$(this).hide ();
|
|
});
|
|
|
|
$("input").click(function () {
|
|
textarea = $(this).parent ().find ('textarea');
|
|
text = textarea.val ();
|
|
|
|
if (text == '')
|
|
return;
|
|
|
|
textarea.val ('');
|
|
|
|
table = $(this).parent ().find ("table");
|
|
comments = table.html ();
|
|
comments += '<tr>' +
|
|
' <td class=\"comment-author\"><!-- $username --></td>' +
|
|
' <td class=\"comment-timestamp\">just now</td>' +
|
|
'</tr>' +
|
|
'<tr>' +
|
|
' <td class=\"comment-text\" colspan=\"2\">' + text + '</td>' +
|
|
'</tr>';
|
|
table.html (comments);
|
|
|
|
location = this.id + '~' + text;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background-color: #fff;
|
|
color: <!-- $body-color -->;
|
|
font-size: <!-- $body-font-size -->;
|
|
font-family: <!-- $body-font-family -->;
|
|
margin: 0;
|
|
padding: 18px;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
small {
|
|
font-size: <!-- $small-font-size -->;
|
|
color: <!-- $secondary-font-color -->;
|
|
}
|
|
|
|
.moved-arrow {
|
|
color: <!-- $secondary-font-color -->;
|
|
}
|
|
|
|
.comment-text {
|
|
font-size: 90%;
|
|
padding: 12px;
|
|
background-color: #FFF4DB;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.day-entry-header {
|
|
opacity: 0.5;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: block;
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.day-entry-content .event-entry:last-child {
|
|
border: none;
|
|
}
|
|
|
|
a {
|
|
color: <!-- $a-color -->;
|
|
text-decoration: none;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
a:hover {
|
|
color: <!-- $a-hover-color -->;
|
|
}
|
|
|
|
.event-timestamp {
|
|
float: left;
|
|
font-size: 80%;
|
|
color: <!-- $secondary-font-color -->;
|
|
}
|
|
|
|
.event-user-name {
|
|
float: left;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.event-folder {
|
|
float: right;
|
|
color: <!-- $secondary-font-color -->;
|
|
}
|
|
|
|
.event-entry {
|
|
margin-bottom: 24px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px <!-- $secondary-font-color --> solid;
|
|
width: 90%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding-left: 60px;
|
|
background-repeat: no-repeat;
|
|
display: block;
|
|
}
|
|
|
|
.action {
|
|
font-size: 80%;
|
|
margin-left: 15px;
|
|
float: right;
|
|
margin-bottom: 9px;
|
|
color: <!-- $a-color -->;
|
|
}
|
|
|
|
.action:hover {
|
|
color: <!-- $a-hover-color -->;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clearer {
|
|
clear: both;
|
|
backround-color: blue;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.separator {
|
|
clear: both;
|
|
border-bottom: 1px #ccc solid;
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
dl {
|
|
padding : 0;
|
|
margin: 0;
|
|
margin-bottom: 12px;
|
|
padding-top: 6px;
|
|
clear: both;
|
|
}
|
|
|
|
dd {
|
|
display: none;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 90%;
|
|
padding: 0;
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
padding-left: 20px;
|
|
margin: 0;
|
|
margin-bottom: 1px;
|
|
background-repeat: no-repeat;
|
|
background-position: center left;
|
|
}
|
|
|
|
dl dd:nth-child(-n+10) {
|
|
display: block;
|
|
}
|
|
|
|
.document-added {
|
|
background-image: url('<!-- $document-added-background-image -->');
|
|
}
|
|
|
|
.document-deleted {
|
|
background-image: url('<!-- $document-deleted-background-image -->');
|
|
}
|
|
|
|
.document-edited {
|
|
background-image: url('<!-- $document-edited-background-image -->');
|
|
}
|
|
|
|
.document-moved {
|
|
background-image: url('<!-- $document-moved-background-image -->');
|
|
}
|
|
|
|
.no-buddy-icon {
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
float: left;
|
|
margin-right: 12px;
|
|
width: 48px;
|
|
background-image: url('<!-- $no-buddy-icon-background-image -->');
|
|
background-repeat: no-repeat;
|
|
background-position: top center;
|
|
}
|
|
|
|
.buddy-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
.comments {
|
|
width: 100%;
|
|
font-size: 90%;
|
|
margin-bottom: 9px;
|
|
}
|
|
|
|
.comment-author {
|
|
font-size: 90%;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
margin-bottom: 9px;
|
|
background-repeat: no-repeat;
|
|
background-position: bottom left;
|
|
background-size: 24px;
|
|
height: 24px;
|
|
padding-left: 30px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.comment-timestamp {
|
|
color: <!-- $secondary-font-color -->;
|
|
text-align: right;
|
|
}
|
|
|
|
.comment-button {
|
|
float:right;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.comment-textarea {
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
width: 100%;
|
|
height: 3em;
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.comments-section {
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
.comments-wrapper {
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.comments-section:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.comment-text {
|
|
padding-bottom: 15px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- $event-log-content -->
|
|
</body>
|
|
</html>
|