html: remove unused lines
This commit is contained in:
parent
f986698787
commit
4cef3c20e6
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
<div class="event-timestamp"><!-- $event-time --></div>
|
<div class="event-timestamp"><!-- $event-time --></div>
|
||||||
<div class="action show">Show all</div>
|
<a class="show">Show all</a>
|
||||||
|
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,21 +28,15 @@
|
||||||
}
|
}
|
||||||
}, 60 * 1000);
|
}, 60 * 1000);
|
||||||
|
|
||||||
$('.buddy-icon').each (function () {
|
|
||||||
if ($(this).css('backgroundImage').indexOf ('@') != -1) {
|
|
||||||
$(this).css ('backgroundColor', '#fff');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Hide the 'Show all' link when there are less than 10 events
|
// Hide the 'Show all' link when there are less than 10 events
|
||||||
$('.show').each (function () {
|
$('.show').each (function () {
|
||||||
var entries = $(this).parent ().find ('dl').children ().length;
|
var entry_count = $(this).parent ().find ('dl').children ().length;
|
||||||
|
|
||||||
if (entries <= 10) {
|
if (entry_count <= 10) {
|
||||||
$(this).hide ();
|
$(this).hide ();
|
||||||
} else {
|
} else {
|
||||||
// Append the number of entries
|
// Append the number of entries
|
||||||
$(this).html ('Show all ' + entries + '…');
|
$(this).html ('Show all ' + entry_count + '…');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -74,14 +68,9 @@
|
||||||
color: <!-- $secondary-font-color -->;
|
color: <!-- $secondary-font-color -->;
|
||||||
}
|
}
|
||||||
|
|
||||||
.moved-arrow {
|
|
||||||
color: <!-- $secondary-font-color -->;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-entry-header {
|
.day-entry-header {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
display: block;
|
|
||||||
padding-top: 22px;
|
padding-top: 22px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
@ -95,16 +84,15 @@
|
||||||
a:hover {
|
a:hover {
|
||||||
color: <!-- $a-hover-color -->;
|
color: <!-- $a-hover-color -->;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-timestamp {
|
.event-timestamp {
|
||||||
float: left;
|
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
color: <!-- $secondary-font-color -->;
|
color: <!-- $secondary-font-color -->;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-user-name {
|
.event-user-name {
|
||||||
float: left;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,50 +102,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-entry {
|
.event-entry {
|
||||||
padding-top: 24px;
|
padding: 24px 14px 14px 64px;
|
||||||
padding-bottom: 14px;
|
margin: 0 32px 0 32px;
|
||||||
border-bottom: 1px #ddd solid;
|
border-bottom: 1px #ddd solid;
|
||||||
padding-left: 64px;
|
|
||||||
margin-left: 32px;
|
|
||||||
margin-right: 32px;
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 36px 24px;
|
background-position: 36px 24px;
|
||||||
display: block;
|
min-height: 100px;
|
||||||
min-height: 64px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.action {
|
a.show {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
margin-bottom: 9px;
|
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 {
|
.separator {
|
||||||
clear: both;
|
|
||||||
border-bottom: 1px #ccc solid;
|
border-bottom: 1px #ccc solid;
|
||||||
margin-top: 24px;
|
margin: 24px 0 24px 0;
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dl {
|
dl {
|
||||||
padding : 0;
|
padding : 6px 0 0 0;
|
||||||
margin: 0;
|
margin: 0 0 12px 0;
|
||||||
margin-bottom: 12px;
|
|
||||||
padding-top: 6px;
|
|
||||||
clear: both;
|
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,18 +131,11 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
padding: 0;
|
padding: 0 0 1px 20px;
|
||||||
padding-bottom: 1px;
|
margin: 0 0 4px 0;
|
||||||
padding-left: 20px;
|
|
||||||
margin: 0;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center left;
|
background-position: center left;
|
||||||
}
|
|
||||||
|
|
||||||
.document {
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 100%;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -303,13 +303,13 @@ namespace SparkleShare {
|
||||||
|
|
||||||
foreach (SparkleChange change in change_set.Changes) {
|
foreach (SparkleChange change in change_set.Changes) {
|
||||||
if (change.Type != SparkleChangeType.Moved) {
|
if (change.Type != SparkleChangeType.Moved) {
|
||||||
event_entry += "<dd class='document " + change.Type.ToString ().ToLower () + "'>";
|
event_entry += "<dd class='" + change.Type.ToString ().ToLower () + "'>";
|
||||||
event_entry += "<small>" + change.Timestamp.ToString ("HH:mm") +"</small> ";
|
event_entry += "<small>" + change.Timestamp.ToString ("HH:mm") +"</small> ";
|
||||||
event_entry += FormatBreadCrumbs (change_set.Folder.FullPath, change.Path);
|
event_entry += FormatBreadCrumbs (change_set.Folder.FullPath, change.Path);
|
||||||
event_entry += "</dd>";
|
event_entry += "</dd>";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
event_entry += "<dd class='document moved'>";
|
event_entry += "<dd class='moved'>";
|
||||||
event_entry += FormatBreadCrumbs (change_set.Folder.FullPath, change.Path);
|
event_entry += FormatBreadCrumbs (change_set.Folder.FullPath, change.Path);
|
||||||
event_entry += "<br>";
|
event_entry += "<br>";
|
||||||
event_entry += "<small>" + change.Timestamp.ToString ("HH:mm") +"</small> ";
|
event_entry += "<small>" + change.Timestamp.ToString ("HH:mm") +"</small> ";
|
||||||
|
|
Loading…
Reference in a new issue