event log: show repo url upon hovering of the folder name. Closes #544

This commit is contained in:
Hylke Bons 2012-01-27 00:52:56 +00:00
parent 307b7ef0ea
commit 4d89897267
5 changed files with 63 additions and 38 deletions

View file

@ -628,6 +628,7 @@ namespace SparkleLib {
change_set.User.Name = match.Groups [2].Value;
change_set.User.Email = match.Groups [3].Value;
change_set.IsMagical = is_merge_commit;
change_set.Url = Url;
change_set.Timestamp = new DateTime (int.Parse (match.Groups [4].Value),
int.Parse (match.Groups [5].Value), int.Parse (match.Groups [6].Value),

View file

@ -30,6 +30,7 @@ namespace SparkleLib {
public DateTime Timestamp;
public DateTime FirstTimestamp;
public bool IsMagical = false;
public Uri Url;
public List<string> Added = new List<string> ();
public List<string> Deleted = new List<string> ();

View file

@ -453,6 +453,7 @@ namespace SparkleShare {
.Replace ("<!-- $event-avatar-url -->", change_set_avatar)
.Replace ("<!-- $event-time -->", timestamp)
.Replace ("<!-- $event-folder -->", change_set.Folder)
.Replace ("<!-- $event-url -->", change_set.Url.ToString ())
.Replace ("<!-- $event-revision -->", change_set.Revision)
.Replace ("<!-- $event-folder-color -->", AssignColor (change_set.Folder))
.Replace ("<!-- $event-comments -->", comments);

View file

@ -1,6 +1,6 @@
<div class='event-entry' style='background-image: url("<!-- $event-avatar-url -->");'>
<div class='event-user-name'><!-- $event-user-name --></div>
<div class='event-folder'><!-- $event-folder --></div>
<div class='event-folder'><!-- $event-folder --><span><!-- $event-url --></span></div>
<!-- $event-entry-content -->

View file

@ -152,11 +152,33 @@
font-weight: bold;
}
.event-folder {
float: right;
color: <!-- $secondary-font-color -->;
position: relative;
cursor: pointer;
}
.event-folder span {
display: none
}
.event-folder:hover span {
display: block;
position: absolute;
top: 20px;
right: 0;
background-color: rgba(20, 20, 20, 0.8);
color: #fafafa;
padding: 7px 12px;
border-radius: 5px;
font-family: sans-serif;
font-size: 12px;
float:right;
}
.event-entry {
margin-bottom: 24px;
padding-bottom: 24px;