2010-11-06 15:05:48 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
2011-05-02 12:35:38 +00:00
|
|
|
<head>
|
|
|
|
<title>SparkleShare Event Log</title>
|
2011-06-20 19:57:24 +00:00
|
|
|
<script type="text/javascript" src="<!-- $jquery-url -->"></script>
|
|
|
|
<script type="text/javascript">
|
2011-06-20 22:55:18 +00:00
|
|
|
$(document).ready(function () {
|
2011-07-17 00:22:39 +00:00
|
|
|
$('.comments-section').each (function () {
|
2011-06-22 22:33:42 +00:00
|
|
|
if ($(this).find ('.comments').children ().size () < 1) {
|
|
|
|
$(this).hide ();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2011-06-26 22:24:15 +00:00
|
|
|
$('.buddy-icon').each (function () {
|
|
|
|
if ($(this).css('backgroundImage').indexOf ('@') != -1) {
|
|
|
|
$(this).css ('backgroundColor', '#fff');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2011-07-16 18:41:04 +00:00
|
|
|
// Show the form when 'Add note' is clicked
|
|
|
|
$('.note').click(function () {
|
2011-07-17 00:22:39 +00:00
|
|
|
$(this).parent ().find ('.comments-section').show ();
|
2011-06-22 22:33:42 +00:00
|
|
|
});
|
|
|
|
|
2011-07-16 18:41:04 +00:00
|
|
|
// 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 ();
|
|
|
|
});
|
|
|
|
|
2011-06-20 19:57:24 +00:00
|
|
|
$("input").click(function () {
|
2011-06-20 22:55:18 +00:00
|
|
|
textarea = $(this).parent ().find ('textarea');
|
|
|
|
text = textarea.val ();
|
|
|
|
|
|
|
|
if (text == '')
|
|
|
|
return;
|
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
// Clear the textarea
|
2011-06-20 22:55:18 +00:00
|
|
|
textarea.val ('');
|
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
table = $(this).parent ().find (".comments");
|
2011-06-20 22:55:18 +00:00
|
|
|
comments = table.html ();
|
2011-07-17 00:22:39 +00:00
|
|
|
|
|
|
|
// Add the note to the html
|
|
|
|
comments += '<div class="comment-text">' +
|
|
|
|
'<p class="comment-author"' +
|
|
|
|
' style="background-image: url(\'<!-- $user-avatar-url -->\');">' +
|
|
|
|
'<!-- $username --></p>' +
|
|
|
|
text +
|
|
|
|
'</div>';
|
|
|
|
|
2011-06-20 22:55:18 +00:00
|
|
|
table.html (comments);
|
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
// Feed the note to the backend
|
2011-06-22 01:03:27 +00:00
|
|
|
location = this.id + '~' + text;
|
2011-06-20 19:57:24 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
<style>
|
2011-07-15 22:51:15 +00:00
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
body {
|
2011-07-15 22:51:15 +00:00
|
|
|
background-color: #fff;
|
2011-05-02 12:35:38 +00:00
|
|
|
color: <!-- $body-color -->;
|
|
|
|
font-size: <!-- $body-font-size -->;
|
|
|
|
font-family: <!-- $body-font-family -->;
|
|
|
|
margin: 0;
|
2011-06-18 23:02:01 +00:00
|
|
|
padding: 18px;
|
2011-05-29 02:07:51 +00:00
|
|
|
-webkit-user-select: none;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
2010-11-06 15:05:48 +00:00
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
small {
|
2011-04-28 11:46:22 +00:00
|
|
|
font-size: <!-- $small-font-size -->;
|
2011-06-10 20:26:26 +00:00
|
|
|
color: <!-- $secondary-font-color -->;
|
2011-04-28 11:46:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.moved-arrow {
|
|
|
|
color: <!-- $secondary-font-color -->;
|
|
|
|
}
|
2010-11-06 15:05:48 +00:00
|
|
|
|
2011-07-16 18:41:04 +00:00
|
|
|
.comment-text {
|
|
|
|
font-size: 90%;
|
|
|
|
padding: 12px;
|
|
|
|
background-color: #FFF4DB;
|
2011-07-16 19:38:04 +00:00
|
|
|
margin-bottom: 2px;
|
2011-06-20 01:06:28 +00:00
|
|
|
}
|
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
.day-entry-header {
|
2011-07-16 21:30:35 +00:00
|
|
|
color: #aaa;
|
2011-06-18 23:02:01 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2011-07-15 22:51:15 +00:00
|
|
|
display: block;
|
|
|
|
text-align: center;
|
2011-07-16 21:30:35 +00:00
|
|
|
margin-bottom: 36px;
|
2011-07-16 18:41:04 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.day-entry-content .event-entry:last-child {
|
|
|
|
border: none;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: <!-- $a-color -->;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2011-03-17 15:16:33 +00:00
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
a:hover {
|
|
|
|
color: <!-- $a-hover-color -->;
|
|
|
|
}
|
2011-03-17 15:16:33 +00:00
|
|
|
|
2011-07-15 22:51:15 +00:00
|
|
|
.event-timestamp {
|
2011-07-16 18:41:04 +00:00
|
|
|
float: left;
|
|
|
|
font-size: 80%;
|
2011-07-15 22:51:15 +00:00
|
|
|
color: <!-- $secondary-font-color -->;
|
|
|
|
}
|
|
|
|
|
|
|
|
.event-user-name {
|
|
|
|
float: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2011-06-22 19:38:14 +00:00
|
|
|
.event-folder {
|
2011-06-10 20:26:26 +00:00
|
|
|
float: right;
|
2011-07-15 22:51:15 +00:00
|
|
|
color: <!-- $secondary-font-color -->;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
2010-11-07 21:05:18 +00:00
|
|
|
|
2011-07-16 18:41:04 +00:00
|
|
|
.event-entry {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
padding-bottom: 24px;
|
|
|
|
border-bottom: 1px <!-- $secondary-font-color --> solid;
|
2011-07-21 01:37:21 +00:00
|
|
|
width: 95%;
|
2011-07-16 19:55:22 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2011-07-16 20:09:17 +00:00
|
|
|
padding-left: 72px;
|
|
|
|
padding-right: 12px;
|
2011-07-16 18:41:04 +00:00
|
|
|
background-repeat: no-repeat;
|
2011-07-16 20:09:17 +00:00
|
|
|
background-position: 12px top;
|
2011-07-15 22:51:15 +00:00
|
|
|
display: block;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
2011-06-11 17:51:13 +00:00
|
|
|
|
2011-07-15 22:51:15 +00:00
|
|
|
.action {
|
2011-07-16 18:41:04 +00:00
|
|
|
font-size: 80%;
|
2011-07-15 22:51:15 +00:00
|
|
|
margin-left: 15px;
|
|
|
|
float: right;
|
2011-07-16 18:41:04 +00:00
|
|
|
margin-bottom: 9px;
|
2011-07-15 22:51:15 +00:00
|
|
|
color: <!-- $a-color -->;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action:hover {
|
|
|
|
color: <!-- $a-hover-color -->;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clearer {
|
|
|
|
clear: both;
|
|
|
|
backround-color: blue;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.separator {
|
2011-07-16 18:41:04 +00:00
|
|
|
clear: both;
|
2011-07-15 22:51:15 +00:00
|
|
|
border-bottom: 1px #ccc solid;
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 24px;
|
2011-06-11 17:51:13 +00:00
|
|
|
}
|
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
dl {
|
2011-06-10 20:26:26 +00:00
|
|
|
padding : 0;
|
|
|
|
margin: 0;
|
2011-07-15 22:51:15 +00:00
|
|
|
margin-bottom: 12px;
|
2011-07-16 18:41:04 +00:00
|
|
|
padding-top: 6px;
|
|
|
|
clear: both;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
2011-07-16 18:41:04 +00:00
|
|
|
display: none;
|
2011-07-15 22:51:15 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 90%;
|
|
|
|
padding: 0;
|
|
|
|
padding-top: 2px;
|
|
|
|
padding-bottom: 2px;
|
2011-07-16 18:41:04 +00:00
|
|
|
padding-left: 20px;
|
2011-07-15 22:51:15 +00:00
|
|
|
margin: 0;
|
2011-07-16 18:41:04 +00:00
|
|
|
margin-bottom: 1px;
|
2011-07-15 22:51:15 +00:00
|
|
|
background-repeat: no-repeat;
|
2011-06-11 01:51:04 +00:00
|
|
|
background-position: center left;
|
2011-06-10 20:26:26 +00:00
|
|
|
}
|
|
|
|
|
2011-07-16 18:41:04 +00:00
|
|
|
dl dd:nth-child(-n+10) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2011-07-16 21:30:35 +00:00
|
|
|
.document {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.added {
|
2011-06-11 01:51:04 +00:00
|
|
|
background-image: url('<!-- $document-added-background-image -->');
|
|
|
|
}
|
|
|
|
|
2011-07-16 21:30:35 +00:00
|
|
|
.deleted {
|
2011-06-11 01:51:04 +00:00
|
|
|
background-image: url('<!-- $document-deleted-background-image -->');
|
|
|
|
}
|
|
|
|
|
2011-07-16 21:30:35 +00:00
|
|
|
.edited {
|
2011-06-11 01:51:04 +00:00
|
|
|
background-image: url('<!-- $document-edited-background-image -->');
|
|
|
|
}
|
|
|
|
|
2011-07-16 21:30:35 +00:00
|
|
|
.moved {
|
2011-06-11 01:51:04 +00:00
|
|
|
background-image: url('<!-- $document-moved-background-image -->');
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
2011-02-11 01:31:10 +00:00
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
.no-buddy-icon {
|
2011-07-15 22:51:15 +00:00
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2011-05-02 12:35:38 +00:00
|
|
|
float: left;
|
|
|
|
margin-right: 12px;
|
2011-07-15 22:51:15 +00:00
|
|
|
width: 48px;
|
2011-05-02 12:35:38 +00:00
|
|
|
background-image: url('<!-- $no-buddy-icon-background-image -->');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: top center;
|
|
|
|
}
|
2011-02-11 01:31:10 +00:00
|
|
|
|
2011-05-02 12:35:38 +00:00
|
|
|
.buddy-icon {
|
2011-07-15 22:51:15 +00:00
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2011-05-02 12:35:38 +00:00
|
|
|
}
|
2011-06-22 01:03:27 +00:00
|
|
|
|
|
|
|
.comments {
|
|
|
|
width: 100%;
|
2011-07-16 18:41:04 +00:00
|
|
|
font-size: 90%;
|
|
|
|
margin-bottom: 9px;
|
2011-06-22 01:03:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.comment-author {
|
2011-07-16 18:41:04 +00:00
|
|
|
font-size: 90%;
|
2011-06-22 01:03:27 +00:00
|
|
|
font-weight: bold;
|
2011-07-16 18:41:04 +00:00
|
|
|
margin: 0;
|
2011-07-16 19:38:04 +00:00
|
|
|
margin-bottom: 9px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: bottom left;
|
|
|
|
background-size: 24px;
|
|
|
|
height: 24px;
|
|
|
|
padding-left: 30px;
|
|
|
|
line-height: 24px;
|
2011-06-22 01:03:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.comment-timestamp {
|
|
|
|
color: <!-- $secondary-font-color -->;
|
2011-06-22 19:38:14 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-button {
|
|
|
|
float:right;
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-textarea {
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
width: 100%;
|
2011-07-16 18:41:04 +00:00
|
|
|
height: 3em;
|
2011-06-22 22:33:42 +00:00
|
|
|
padding-bottom: 6px;
|
2011-06-22 19:38:14 +00:00
|
|
|
}
|
|
|
|
|
2011-06-22 22:33:42 +00:00
|
|
|
.comments-section {
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
2011-06-22 23:09:31 +00:00
|
|
|
width: 100%;
|
2011-07-16 18:41:04 +00:00
|
|
|
}
|
2011-06-22 22:33:42 +00:00
|
|
|
|
|
|
|
.comments-wrapper {
|
2011-06-22 19:38:14 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
width: 100%;
|
2011-07-15 22:51:15 +00:00
|
|
|
margin-top: 12px;
|
2011-06-22 19:38:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.comment-text {
|
2011-06-22 22:33:42 +00:00
|
|
|
padding-bottom: 15px;
|
2011-06-22 01:03:27 +00:00
|
|
|
}
|
2011-05-29 02:08:22 +00:00
|
|
|
</style>
|
2011-05-02 12:35:38 +00:00
|
|
|
</head>
|
2011-05-29 02:07:51 +00:00
|
|
|
<body>
|
2011-05-02 12:35:38 +00:00
|
|
|
<!-- $event-log-content -->
|
|
|
|
</body>
|
2010-11-06 15:05:48 +00:00
|
|
|
</html>
|