[log] webkit based event log (still kind of broken)
This commit is contained in:
parent
ae090c4059
commit
4c2b832e45
|
@ -60,8 +60,54 @@ namespace SparkleShare {
|
||||||
Close ();
|
Close ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
LayoutVertical = new VBox (false, 0);
|
||||||
|
|
||||||
// Adds a hidden menubar that contains to enable keyboard
|
LayoutVertical.PackStart (CreateEventLog (), true, true, 0);
|
||||||
|
|
||||||
|
HButtonBox dialog_buttons = new HButtonBox {
|
||||||
|
Layout = ButtonBoxStyle.Edge,
|
||||||
|
BorderWidth = 12
|
||||||
|
};
|
||||||
|
|
||||||
|
Button open_folder_button = new Button (_("_Open Folder")) {
|
||||||
|
UseUnderline = true
|
||||||
|
};
|
||||||
|
|
||||||
|
open_folder_button.Clicked += delegate (object o, EventArgs args) {
|
||||||
|
|
||||||
|
Process process = new Process ();
|
||||||
|
process.StartInfo.FileName = Defines.OPEN_COMMAND;
|
||||||
|
process.StartInfo.Arguments = LocalPath.Replace (" ", "\\ "); // Escape space-characters
|
||||||
|
process.Start ();
|
||||||
|
|
||||||
|
Close ();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
Button close_button = new Button (Stock.Close);
|
||||||
|
|
||||||
|
close_button.Clicked += delegate {
|
||||||
|
Close ();
|
||||||
|
};
|
||||||
|
|
||||||
|
dialog_buttons.Add (open_folder_button);
|
||||||
|
dialog_buttons.Add (close_button);
|
||||||
|
|
||||||
|
LayoutVertical.PackStart (new HSeparator (), false, false, 0);
|
||||||
|
|
||||||
|
// We have to hide the menubar somewhere...
|
||||||
|
LayoutVertical.PackStart (EnableKeyboardShortcuts (), false, false, 0);
|
||||||
|
LayoutVertical.PackStart (dialog_buttons, false, false, 0);
|
||||||
|
|
||||||
|
Add (LayoutVertical);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private MenuBar EnableKeyboardShortcuts ()
|
||||||
|
{
|
||||||
|
|
||||||
|
// Adds a hidden menubar that to enable keyboard
|
||||||
// shortcuts to close the log
|
// shortcuts to close the log
|
||||||
MenuBar = new MenuBar ();
|
MenuBar = new MenuBar ();
|
||||||
|
|
||||||
|
@ -99,45 +145,7 @@ namespace SparkleShare {
|
||||||
MenuBar.HeightRequest = 1;
|
MenuBar.HeightRequest = 1;
|
||||||
MenuBar.ModifyBg (StateType.Normal, Style.Background (StateType.Normal));
|
MenuBar.ModifyBg (StateType.Normal, Style.Background (StateType.Normal));
|
||||||
|
|
||||||
LayoutVertical = new VBox (false, 0);
|
return MenuBar;
|
||||||
|
|
||||||
LayoutVertical.PackStart (CreateEventLog (), true, true, 0);
|
|
||||||
|
|
||||||
HButtonBox dialog_buttons = new HButtonBox {
|
|
||||||
Layout = ButtonBoxStyle.Edge,
|
|
||||||
BorderWidth = 12
|
|
||||||
};
|
|
||||||
|
|
||||||
Button open_folder_button = new Button (_("_Open Folder")) {
|
|
||||||
UseUnderline = true
|
|
||||||
};
|
|
||||||
|
|
||||||
open_folder_button.Clicked += delegate (object o, EventArgs args) {
|
|
||||||
|
|
||||||
Process process = new Process ();
|
|
||||||
process.StartInfo.FileName = Defines.OPEN_COMMAND;
|
|
||||||
process.StartInfo.Arguments = LocalPath.Replace (" ", "\\ "); // Escape space-characters
|
|
||||||
process.Start ();
|
|
||||||
|
|
||||||
Close ();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
Button close_button = new Button (Stock.Close);
|
|
||||||
|
|
||||||
close_button.Clicked += delegate {
|
|
||||||
Close ();
|
|
||||||
};
|
|
||||||
|
|
||||||
dialog_buttons.Add (open_folder_button);
|
|
||||||
dialog_buttons.Add (close_button);
|
|
||||||
|
|
||||||
LayoutVertical.PackStart (new HSeparator (), false, false, 0);
|
|
||||||
// We have to hide the menubar somewhere...
|
|
||||||
LayoutVertical.PackStart (MenuBar, false, false, 0);
|
|
||||||
LayoutVertical.PackStart (dialog_buttons, false, false, 0);
|
|
||||||
|
|
||||||
Add (LayoutVertical);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,7 +247,23 @@ namespace SparkleShare {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VBox layout_vertical = new VBox (false, 0);
|
|
||||||
|
|
||||||
|
|
||||||
|
StreamReader reader;
|
||||||
|
|
||||||
|
reader = new StreamReader (Defines.PREFIX + "/share/sparkleshare/html/event-log.html");
|
||||||
|
string event_log_html = reader.ReadToEnd ();
|
||||||
|
reader.Close ();
|
||||||
|
|
||||||
|
reader = new StreamReader (Defines.PREFIX + "/share/sparkleshare/html/day-entry.html");
|
||||||
|
string day_entry_html = reader.ReadToEnd ();
|
||||||
|
reader.Close ();
|
||||||
|
|
||||||
|
reader = new StreamReader (Defines.PREFIX + "/share/sparkleshare/html/event-entry.html");
|
||||||
|
string event_entry_html = reader.ReadToEnd ();
|
||||||
|
reader.Close ();
|
||||||
|
|
||||||
|
|
||||||
if (SparkleShare.Controller.Repositories.Find (
|
if (SparkleShare.Controller.Repositories.Find (
|
||||||
delegate (SparkleRepo r)
|
delegate (SparkleRepo r)
|
||||||
|
@ -251,7 +275,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
SparkleInfobar infobar = new SparkleInfobar ("dialog-error", title, text);
|
SparkleInfobar infobar = new SparkleInfobar ("dialog-error", title, text);
|
||||||
|
|
||||||
layout_vertical.PackStart (infobar, false, false, 0);
|
LayoutVertical.PackStart (infobar, false, false, 0);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -265,25 +289,93 @@ namespace SparkleShare {
|
||||||
|
|
||||||
SparkleInfobar infobar = new SparkleInfobar ("dialog-error", title, text);
|
SparkleInfobar infobar = new SparkleInfobar ("dialog-error", title, text);
|
||||||
|
|
||||||
layout_vertical.PackStart (infobar, false, false, 0);
|
LayoutVertical.PackStart (infobar, false, false, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TreeView tree_view = new TreeView ();
|
string event_log = "";
|
||||||
Gdk.Color background_color = tree_view.Style.Base (StateType.Normal);
|
|
||||||
|
|
||||||
foreach (ActivityDay activity_day in activity_days) {
|
foreach (ActivityDay activity_day in activity_days) {
|
||||||
|
|
||||||
EventBox box = new EventBox ();
|
string event_entries = "";
|
||||||
|
|
||||||
Label date_label = new Label ("") {
|
foreach (SparkleCommit change_set in activity_day) {
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0,
|
string event_entry = "<dl>";
|
||||||
Xpad = 9,
|
|
||||||
Ypad = 9
|
if (change_set.Edited.Count > 0) {
|
||||||
};
|
|
||||||
|
event_entry += "<dt>Edited</dt>";
|
||||||
|
|
||||||
|
foreach (string file_path in change_set.Edited) {
|
||||||
|
|
||||||
|
if (File.Exists (SparkleHelpers.CombineMore (LocalPath, file_path))) {
|
||||||
|
|
||||||
|
event_entry += "<dd><a href='#'>" + file_path + "</a></dd>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
event_entry += "<dd>" + SparkleHelpers.CombineMore (LocalPath, file_path) + "</dd>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (change_set.Added.Count > 0) {
|
||||||
|
|
||||||
|
event_entry += "<dt>Added</dt>";
|
||||||
|
|
||||||
|
foreach (string file_path in change_set.Added) {
|
||||||
|
|
||||||
|
if (File.Exists (SparkleHelpers.CombineMore (LocalPath, file_path))) {
|
||||||
|
|
||||||
|
event_entry += "<dd><a href='#'>" + file_path + "</a></dd>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
event_entry += "<dd>" + SparkleHelpers.CombineMore (LocalPath, file_path) + "</dd>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (change_set.Deleted.Count > 0) {
|
||||||
|
|
||||||
|
event_entry += "<dt>Deleted</dt>";
|
||||||
|
|
||||||
|
foreach (string file_path in change_set.Deleted) {
|
||||||
|
|
||||||
|
if (File.Exists (SparkleHelpers.CombineMore (LocalPath, file_path))) {
|
||||||
|
|
||||||
|
event_entry += "<dd><a href='#'>" + file_path + "</a></dd>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
event_entry += "<dd>" + SparkleHelpers.CombineMore (LocalPath, file_path) + "</dd>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
event_entry += "</dl>";
|
||||||
|
event_entries += event_entry_html.Replace ("<!-- $event-entry-content -->", event_entry)
|
||||||
|
.Replace ("<!-- $event-user-name -->", change_set.UserName)
|
||||||
|
.Replace ("<!-- $event-time -->", change_set.DateTime.ToString ("H:mm"));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
string day_entry = "";
|
||||||
|
|
||||||
DateTime today = DateTime.Now;
|
DateTime today = DateTime.Now;
|
||||||
DateTime yesterday = DateTime.Now.AddDays (-1);
|
DateTime yesterday = DateTime.Now.AddDays (-1);
|
||||||
|
@ -292,212 +384,67 @@ namespace SparkleShare {
|
||||||
today.Month == activity_day.DateTime.Month &&
|
today.Month == activity_day.DateTime.Month &&
|
||||||
today.Year == activity_day.DateTime.Year) {
|
today.Year == activity_day.DateTime.Year) {
|
||||||
|
|
||||||
date_label.Markup = "<b>Today</b>";
|
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->", "<b>Today</b>");
|
||||||
|
|
||||||
} else if (yesterday.Day == activity_day.DateTime.Day &&
|
} else if (yesterday.Day == activity_day.DateTime.Day &&
|
||||||
yesterday.Month == activity_day.DateTime.Month &&
|
yesterday.Month == activity_day.DateTime.Month &&
|
||||||
yesterday.Year == activity_day.DateTime.Year) {
|
yesterday.Year == activity_day.DateTime.Year) {
|
||||||
|
|
||||||
date_label.Markup = "<b>Yesterday</b>";
|
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->", "<b>Yesterday</b>");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
date_label.Markup = "<b>" + activity_day.DateTime.ToString ("ddd MMM d, yyyy") + "</b>";
|
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->",
|
||||||
|
"<b>" + activity_day.DateTime.ToString ("ddd MMM d, yyyy") + "</b>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
box.Add (date_label);
|
event_log += day_entry.Replace ("<!-- $day-entry-content -->", event_entries);
|
||||||
layout_vertical.PackStart (box, false, false, 0);
|
|
||||||
|
|
||||||
Gdk.Color color = Style.Foreground (StateType.Insensitive);
|
|
||||||
string secondary_text_color = SparkleUIHelpers.GdkColorToHex (color);
|
|
||||||
|
|
||||||
foreach (SparkleCommit change_set in activity_day) {
|
|
||||||
|
|
||||||
VBox log_entry = new VBox (false, 0);
|
|
||||||
VBox deleted_files = new VBox (false, 0);
|
|
||||||
VBox edited_files = new VBox (false, 0);
|
|
||||||
VBox added_files = new VBox (false, 0);
|
|
||||||
VBox moved_files = new VBox (false, 0);
|
|
||||||
|
|
||||||
|
|
||||||
foreach (string file_path in change_set.Edited) {
|
|
||||||
|
|
||||||
SparkleLink link = new SparkleLink (file_path,
|
|
||||||
SparkleHelpers.CombineMore (LocalPath, file_path));
|
|
||||||
|
|
||||||
link.ModifyBg (StateType.Normal, background_color);
|
|
||||||
|
|
||||||
edited_files.PackStart (link, false, false, 0);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string file_path in change_set.Added) {
|
string html = event_log_html.Replace ("<!-- $event-log-content -->", event_log);
|
||||||
|
|
||||||
SparkleLink link = new SparkleLink (file_path,
|
|
||||||
SparkleHelpers.CombineMore (LocalPath, file_path));
|
|
||||||
|
|
||||||
link.ModifyBg (StateType.Normal, background_color);
|
|
||||||
|
|
||||||
added_files.PackStart (link, false, false, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
foreach (string file_path in change_set.Deleted) {
|
// Style the html page like the GTK theme
|
||||||
|
html = html.Replace ("<!-- $body-font-size -->", (Style.FontDescription.Size / 1024 + 0.5) + "pt");
|
||||||
|
html = html.Replace ("<!-- $body-font-family -->", "\"" + Style.FontDescription.Family + "\"");
|
||||||
|
html = html.Replace ("<!-- $body-color -->", SparkleUIHelpers.GdkColorToHex (Style.Foreground (StateType.Normal)));
|
||||||
|
html = html.Replace ("<!-- $body-background-color -->", SparkleUIHelpers.GdkColorToHex (new TreeView ().Style.Base (StateType.Normal)));
|
||||||
|
|
||||||
SparkleLink link = new SparkleLink (file_path,
|
|
||||||
SparkleHelpers.CombineMore (LocalPath, file_path));
|
|
||||||
|
|
||||||
link.ModifyBg (StateType.Normal, background_color);
|
html = html.Replace ("<!-- $day-entry-header-background-color -->", SparkleUIHelpers.GdkColorToHex (Style.Background (StateType.Normal)));
|
||||||
|
html = html.Replace ("<!-- $secondary-font-color -->", SparkleUIHelpers.GdkColorToHex (Style.Foreground (StateType.Insensitive)));
|
||||||
|
|
||||||
deleted_files.PackStart (link, false, false, 0);
|
Console.WriteLine (Style.FontDescription.Family);
|
||||||
|
|
||||||
}
|
WebView = new WebView () {
|
||||||
|
Editable = false
|
||||||
for (int i = 0; i < change_set.MovedFrom.Count; i++) {
|
|
||||||
|
|
||||||
SparkleLink from_link = new SparkleLink (change_set.MovedFrom [i],
|
|
||||||
SparkleHelpers.CombineMore (LocalPath, change_set.MovedFrom [i]));
|
|
||||||
|
|
||||||
from_link.ModifyBg (StateType.Normal, background_color);
|
|
||||||
|
|
||||||
SparkleLink to_link = new SparkleLink (change_set.MovedTo [i],
|
|
||||||
SparkleHelpers.CombineMore (LocalPath, change_set.MovedTo [i]));
|
|
||||||
|
|
||||||
to_link.ModifyBg (StateType.Normal, background_color);
|
|
||||||
|
|
||||||
Label to_label = new Label ("<span fgcolor='" + secondary_text_color +"'>" +
|
|
||||||
"<small>to</small></span> ") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
HBox link_wrapper = new HBox (false, 0);
|
|
||||||
link_wrapper.PackStart (to_label, false, false, 0);
|
|
||||||
link_wrapper.PackStart (to_link, true, true, 0);
|
|
||||||
|
|
||||||
moved_files.PackStart (from_link, false, false, 0);
|
WebView.HoveringOverLink += delegate (object o, WebKit.HoveringOverLinkArgs args) {
|
||||||
moved_files.PackStart (link_wrapper, false, false, 0);
|
Status = args.Link;
|
||||||
|
};
|
||||||
|
WebView.NavigationRequested += delegate (object o, WebKit.NavigationRequestedArgs args) {
|
||||||
|
// FIXME: There's currently no way to tell the difference
|
||||||
|
// between a link being clicked and another navigation event.
|
||||||
|
// This is a temporary workaround.
|
||||||
|
Console.WriteLine ("CLICKED!" + args.Request.Uri);
|
||||||
|
|
||||||
if (change_set.MovedFrom.Count > 1)
|
if (args.Request.Uri == Status) {
|
||||||
moved_files.PackStart (new Label (""), false, false, 0);
|
|
||||||
|
|
||||||
|
Console.WriteLine ("CLICKED!:" + Status);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
HBox change_set_info_hbox = new HBox (false, 0);
|
ScrolledWindow = new ScrolledWindow () {
|
||||||
|
HscrollbarPolicy = PolicyType.Never
|
||||||
Label change_set_info = new Label ("<b>" + change_set.UserName + "</b>") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Label change_set_time = new Label ("<span fgcolor='" + secondary_text_color +"'><small>" +
|
|
||||||
change_set.DateTime.ToString ("H:mm") +
|
|
||||||
"</small></span>") {
|
|
||||||
Xalign = 1,
|
|
||||||
UseMarkup = true
|
|
||||||
};
|
|
||||||
|
|
||||||
change_set_info_hbox.PackStart (change_set_info, true, true, 0);
|
// wrapper.ModifyBg (StateType.Normal, background_color);
|
||||||
change_set_info_hbox.PackStart (change_set_time, false, false, 0);
|
|
||||||
|
|
||||||
log_entry.PackStart (change_set_info_hbox, false, false, 0);
|
|
||||||
|
|
||||||
if (edited_files.Children.Length > 0) {
|
|
||||||
|
|
||||||
Label edited_label = new Label ("\n<span fgcolor='" + secondary_text_color +"'><small>" +
|
|
||||||
_("Edited") +
|
|
||||||
"</small></span>") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
log_entry.PackStart (edited_label, false, false, 0);
|
|
||||||
log_entry.PackStart (edited_files, false, false, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (added_files.Children.Length > 0) {
|
|
||||||
|
|
||||||
Label added_label = new Label ("\n<span fgcolor='" + secondary_text_color +"'><small>" +
|
|
||||||
_("Added") +
|
|
||||||
"</small></span>") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
log_entry.PackStart (added_label, false, false, 0);
|
|
||||||
log_entry.PackStart (added_files, false, false, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (deleted_files.Children.Length > 0) {
|
|
||||||
|
|
||||||
Label deleted_label = new Label ("\n<span fgcolor='" + secondary_text_color +"'><small>" +
|
|
||||||
_("Deleted") +
|
|
||||||
"</small></span>") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
log_entry.PackStart (deleted_label, false, false, 0);
|
|
||||||
log_entry.PackStart (deleted_files, false, false, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (moved_files.Children.Length > 0) {
|
|
||||||
|
|
||||||
Label moved_label = new Label ("\n<span fgcolor='" + secondary_text_color +"'><small>" +
|
|
||||||
_("Moved") +
|
|
||||||
"</small></span>") {
|
|
||||||
UseMarkup = true,
|
|
||||||
Xalign = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
log_entry.PackStart (moved_label, false, false, 0);
|
|
||||||
log_entry.PackStart (moved_files, false, false, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
HBox hbox = new HBox (false, 0);
|
|
||||||
|
|
||||||
Image avatar = new Image (SparkleUIHelpers.GetAvatar (change_set.UserEmail, 32)) {
|
|
||||||
Yalign = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
hbox.PackStart (avatar, false, false, 18);
|
|
||||||
|
|
||||||
VBox vbox = new VBox (false, 0);
|
|
||||||
vbox.PackStart (log_entry, false, false, 0);
|
|
||||||
|
|
||||||
hbox.PackStart (vbox, true, true, 0);
|
|
||||||
hbox.PackStart (new Label (""), false, false, 12);
|
|
||||||
|
|
||||||
layout_vertical.PackStart (hbox, false, false, 18);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
layout_vertical.PackStart (new Label (""), false, false, 3);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
StreamReader reader = new StreamReader ("/home/hbons/github/SparkleShare/data/html/event-log.html");
|
|
||||||
|
|
||||||
string html = reader.ReadToEnd ();
|
|
||||||
|
|
||||||
|
|
||||||
reader.Close ();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
WebView = new WebView ();
|
|
||||||
ScrolledWindow = new ScrolledWindow ();
|
|
||||||
|
|
||||||
EventBox wrapper = new EventBox ();
|
|
||||||
wrapper.ModifyBg (StateType.Normal, background_color);
|
|
||||||
wrapper.Add (layout_vertical);
|
|
||||||
WebView.LoadHtmlString (html, "");
|
WebView.LoadHtmlString (html, "");
|
||||||
WebView.HoveringOverLink += delegate {};
|
WebView.HoveringOverLink += delegate {};
|
||||||
|
|
||||||
|
@ -507,10 +454,10 @@ namespace SparkleShare {
|
||||||
return ScrolledWindow;
|
return ScrolledWindow;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public string Status = null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// All commits that happened on a day
|
// All commits that happened on a day
|
||||||
public class ActivityDay : List <SparkleCommit>
|
public class ActivityDay : List <SparkleCommit>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<div class='day-entry'>
|
<div class='day-entry'>
|
||||||
|
|
||||||
<div class='day-entry-header'>
|
<div class='day-entry-header'>
|
||||||
<!-- $day-entry-header-->
|
<!-- $day-entry-header -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='day-entry-content'>
|
<div class='day-entry-content'>
|
||||||
<!-- $day-entry-content-->
|
<!-- $day-entry-content -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
<div class='event-entry'>
|
<div class='event-entry'>
|
||||||
|
|
||||||
<div class='event-entry-header'>
|
|
||||||
<!-- $event-entry-header-->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class='event-entry-content'>
|
<div class='event-entry-content'>
|
||||||
<!-- $event-entry-content-->
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td><img src='http://www.gravatar.com/avatar/3e8eee17a5d6c6a20b073af0d2b2b48b.png' width='32'></td>
|
||||||
|
<td width='100%'>
|
||||||
|
<b><!-- $event-user-name --></b><br>
|
||||||
|
<!-- $event-entry-content -->
|
||||||
|
</td>
|
||||||
|
<td class='event-time'><!-- $event-time --></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<title>Event Log</title>
|
<title>Event Log</title>
|
||||||
<link rel="stylesheet" media="screen" href="style.css" />
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
@ -12,6 +11,9 @@
|
||||||
background-color: <!-- $body-background-color -->;
|
background-color: <!-- $body-background-color -->;
|
||||||
color: <!-- $body-color -->;
|
color: <!-- $body-color -->;
|
||||||
font-size: <!-- $body-font-size -->;
|
font-size: <!-- $body-font-size -->;
|
||||||
|
font-family: <!-- $body-font-family -->;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
|
@ -21,6 +23,15 @@
|
||||||
|
|
||||||
.day-entry-header {
|
.day-entry-header {
|
||||||
background-color: <!-- $day-entry-header-background-color -->;
|
background-color: <!-- $day-entry-header-background-color -->;
|
||||||
|
padding: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-entry-content {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dd {
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -32,12 +43,21 @@
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.event-time, dt {
|
||||||
|
font-size: 80%;
|
||||||
|
color: <!-- $secondary-font-color -->;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body onDragStart='return false'>
|
||||||
<!-- $log-->
|
<!-- $event-log-content -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue