ellipsize all events

This commit is contained in:
Hylke Bons 2011-07-16 22:30:35 +01:00
parent 8009530c69
commit 4ec894bc67
2 changed files with 20 additions and 17 deletions

View file

@ -336,9 +336,9 @@ namespace SparkleShare {
change_set.Folder, file_path);
if (File.Exists (absolute_file_path))
event_entry += "<dd class='document-edited'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
event_entry += "<dd class='document edited'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
else
event_entry += "<dd class='document-edited'>" + file_path + "</dd>";
event_entry += "<dd class='document edited'>" + file_path + "</dd>";
}
}
@ -348,9 +348,9 @@ namespace SparkleShare {
change_set.Folder, file_path);
if (File.Exists (absolute_file_path))
event_entry += "<dd class='document-added'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
event_entry += "<dd class='document added'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
else
event_entry += "<dd class='document-added'>" + file_path + "</dd>";
event_entry += "<dd class='document added'>" + file_path + "</dd>";
}
}
@ -360,9 +360,9 @@ namespace SparkleShare {
change_set.Folder, file_path);
if (File.Exists (absolute_file_path))
event_entry += "<dd class='document-deleted'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
event_entry += "<dd class='document deleted'><a href='" + absolute_file_path + "'>" + file_path + "</a></dd>";
else
event_entry += "<dd class='document-deleted'>" + file_path + "</dd>";
event_entry += "<dd class='document deleted'>" + file_path + "</dd>";
}
}
@ -376,9 +376,9 @@ namespace SparkleShare {
change_set.Folder, to_file_path);
if (File.Exists (absolute_file_path))
event_entry += "<dd class='document-moved'><a href='" + absolute_file_path + "'>" + file_path + "</a><br/>";
event_entry += "<dd class='document moved'><a href='" + absolute_file_path + "'>" + file_path + "</a><br/>";
else
event_entry += "<dd class='document-moved'>" + file_path + "<br/>";
event_entry += "<dd class='document moved'>" + file_path + "<br/>";
if (File.Exists (absolute_to_file_path))
event_entry += "<a href='" + absolute_to_file_path + "'>" + to_file_path + "</a></dd>";

View file

@ -101,12 +101,12 @@
}
.day-entry-header {
opacity: 0.5;
color: #aaa;
margin-left: auto;
margin-right: auto;
display: block;
text-align: center;
margin-bottom: 24px;
margin-bottom: 36px;
font-weight: bold;
}
@ -117,9 +117,6 @@
a {
color: <!-- $a-color -->;
text-decoration: none;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
}
a:hover {
@ -211,19 +208,25 @@
display: block;
}
.document-added {
.document {
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
}
.added {
background-image: url('<!-- $document-added-background-image -->');
}
.document-deleted {
.deleted {
background-image: url('<!-- $document-deleted-background-image -->');
}
.document-edited {
.edited {
background-image: url('<!-- $document-edited-background-image -->');
}
.document-moved {
.moved {
background-image: url('<!-- $document-moved-background-image -->');
}