Add avatars to notes

This commit is contained in:
Hylke Bons 2011-07-16 20:38:04 +01:00
parent 9ff8e7cf95
commit 0275dc8d31
2 changed files with 14 additions and 5 deletions

View file

@ -398,7 +398,12 @@ namespace SparkleShare {
change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
foreach (SparkleNote note in change_set.Notes) {
comments += "<div class=\"comment-text\">" + note.Body + "<p class=\"comment-author\">" + note.UserName + "</p></div>";
comments += "<div class=\"comment-text\">" +
"<p class=\"comment-author\"" +
" style=\"background-image: url('file://" + GetAvatar (note.UserEmail, 48) + "');\">" +
note.UserName + "</p>" +
note.Body +
"</div>";
}
}

View file

@ -97,8 +97,7 @@
font-size: 90%;
padding: 12px;
background-color: #FFF4DB;
margin-bottom: 1px;
<!-- padding-right: 48px; -->
margin-bottom: 2px;
}
.day-entry-header {
@ -250,9 +249,14 @@
.comment-author {
font-size: 90%;
font-weight: bold;
width: 75%;
margin: 0;
margin-top: 12px;
margin-bottom: 9px;
background-repeat: no-repeat;
background-position: bottom left;
background-size: 24px;
height: 24px;
padding-left: 30px;
line-height: 24px;
}
.comment-timestamp {