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

@ -623,11 +623,12 @@ namespace SparkleLib {
if (match.Success) {
SparkleChangeSet change_set = new SparkleChangeSet ();
change_set.Folder = Name;
change_set.Revision = match.Groups [1].Value;
change_set.User.Name = match.Groups [2].Value;
change_set.User.Email = match.Groups [3].Value;
change_set.IsMagical = is_merge_commit;
change_set.Folder = Name;
change_set.Revision = match.Groups [1].Value;
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

@ -88,23 +88,23 @@
<style>
* {
box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
body {
background-color: #fafafa;
color: <!-- $body-color -->;
font-size: <!-- $body-font-size -->;
font-family: <!-- $body-font-family -->;
margin: 0;
padding: 18px;
color: <!-- $body-color -->;
font-size: <!-- $body-font-size -->;
font-family: <!-- $body-font-family -->;
margin: 0;
padding: 18px;
-webkit-user-select: none;
}
small {
font-size: <!-- $small-font-size -->;
color: <!-- $secondary-font-color -->;
color: <!-- $secondary-font-color -->;
}
.moved-arrow {
@ -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;
@ -209,16 +231,16 @@
dd {
display: none;
overflow: hidden;
text-overflow: ellipsis;
width: 90%;
padding: 0;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 20px;
margin: 0;
margin-bottom: 1px;
background-repeat: no-repeat;
overflow: hidden;
text-overflow: ellipsis;
width: 90%;
padding: 0;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 20px;
margin: 0;
margin-bottom: 1px;
background-repeat: no-repeat;
background-position: center left;
}
@ -252,17 +274,17 @@
position: relative;
top: 0;
left: 0;
float: left;
margin-right: 12px;
width: 48px;
background-image: url('<!-- $no-buddy-icon-background-image -->');
background-repeat: no-repeat;
float: left;
margin-right: 12px;
width: 48px;
background-image: url('<!-- $no-buddy-icon-background-image -->');
background-repeat: no-repeat;
background-position: top center;
}
.buddy-icon {
width: 48px;
height: 48px;
width: 48px;
height: 48px;
}
.comments {
@ -295,23 +317,23 @@
}
.comment-textarea {
box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
width: 100%;
height: 3em;
padding-bottom: 6px;
width: 100%;
height: 3em;
padding-bottom: 6px;
}
.comments-section {
box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
width: 100%;
width: 100%;
}
.comments-wrapper {
box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
width: 100%;
width: 100%;
margin-top: 12px;
}