summaryrefslogtreecommitdiff
path: root/src/fauxton/app/addons/logs
diff options
context:
space:
mode:
authorSimon Metson <simon+github@cloudant.com>2012-12-24 11:33:39 +0000
committerSimon Metson <simon+github@cloudant.com>2012-12-27 10:29:58 +0000
commit9cb2093efce11301bf6125dc53e7d265ff37fb2d (patch)
tree750edb39c3f1f2a116dd168f12c24c6147c92609 /src/fauxton/app/addons/logs
parent8424c3eee43a430e56e1478a04aeb260b990e541 (diff)
downloadcouchdb-9cb2093efce11301bf6125dc53e7d265ff37fb2d.tar.gz
move templates for log and config addons
Diffstat (limited to 'src/fauxton/app/addons/logs')
-rw-r--r--src/fauxton/app/addons/logs/templates/dashboard.html30
-rw-r--r--src/fauxton/app/addons/logs/templates/filterItem.html2
-rw-r--r--src/fauxton/app/addons/logs/templates/sidebar.html11
3 files changed, 43 insertions, 0 deletions
diff --git a/src/fauxton/app/addons/logs/templates/dashboard.html b/src/fauxton/app/addons/logs/templates/dashboard.html
new file mode 100644
index 000000000..955c75c20
--- /dev/null
+++ b/src/fauxton/app/addons/logs/templates/dashboard.html
@@ -0,0 +1,30 @@
+ <h2> Couchdb Logs </h2>
+ <table class="table table-bordered" >
+ <thead>
+ <tr>
+ <th class="Date">Date</th>
+ <th class="Log Level">Log Value</th>
+ <th class="Pid">Pid</th>
+ <th class="Args">Url</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% _.each(logs, function (log) { %>
+ <tr class="<%= log.log_level %>">
+ <td>
+ <%= log.date %>
+ </td>
+ <td>
+ <%= log.log_level %>
+ </td>
+ <td>
+ <%= log.pid %>
+ </td>
+ <td>
+ <%= log.args %>
+ </td>
+ </tr>
+ <% }); %>
+ </tbody>
+</table>
diff --git a/src/fauxton/app/addons/logs/templates/filterItem.html b/src/fauxton/app/addons/logs/templates/filterItem.html
new file mode 100644
index 000000000..3e3329e44
--- /dev/null
+++ b/src/fauxton/app/addons/logs/templates/filterItem.html
@@ -0,0 +1,2 @@
+<span class="label label-info"> <%= filter %> </span>
+<a class="label label-info remove-filter" href="#">&times;</a>
diff --git a/src/fauxton/app/addons/logs/templates/sidebar.html b/src/fauxton/app/addons/logs/templates/sidebar.html
new file mode 100644
index 000000000..bae20201f
--- /dev/null
+++ b/src/fauxton/app/addons/logs/templates/sidebar.html
@@ -0,0 +1,11 @@
+<div id="log-sidebar">
+ <form class="form-inline" id="log-filter-form">
+ <fieldset>
+ <legend>Log Filter</legend>
+ <input type="text" name="filter" placeholder="Type a filter to sort the logs by">
+ <button type="submit" class="btn">Filter</button>
+ <span class="help-block"> <h6> Eg. debug or <1.4.1> or any regex </h6> </span>
+ </fieldset>
+ </form>
+ <ul id="filter-list"></ul>
+</div>