summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-11-11 12:42:50 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-11-11 12:42:50 -0500
commitc6ed561909505c24aae03ac2380672d048740802 (patch)
tree51045b269cf031b1ff76f5dee7509707470c8f11 /webui_templates
parent16d3ba6682f4e622636872360cdf7b74086da841 (diff)
downloadcobbler-c6ed561909505c24aae03ac2380672d048740802.tar.gz
cobbler-c6ed561909505c24aae03ac2380672d048740802.tar.xz
cobbler-c6ed561909505c24aae03ac2380672d048740802.zip
Add creation and modification times to the web app.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/distro_edit.tmpl21
-rw-r--r--webui_templates/image_edit.tmpl23
-rw-r--r--webui_templates/profile_edit.tmpl23
-rw-r--r--webui_templates/repo_edit.tmpl23
-rw-r--r--webui_templates/system_edit.tmpl22
5 files changed, 112 insertions, 0 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index d0b19c45..b399ace5 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -1,6 +1,8 @@
#extends cobbler.webui.master
#block body
+#import time
+
#if $distro
<script language="javascript">
function disablename(value)
@@ -70,6 +72,25 @@ function disablename(value)
<input type="hidden" name="editmode" value="new"/>
#end if
+ #if $distro
+ <tr>
+ <td>
+ <label>Created</label>
+ </td>
+ <td>
+ $time.ctime($distro.ctime)
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <label>Last Modified</label>
+ </td>
+ <td>
+ $time.ctime($distro.mtime)
+ </td>
+ </tr>
+ #end if
<tr>
<td>
diff --git a/webui_templates/image_edit.tmpl b/webui_templates/image_edit.tmpl
index b7913949..067b1483 100644
--- a/webui_templates/image_edit.tmpl
+++ b/webui_templates/image_edit.tmpl
@@ -1,6 +1,8 @@
#extends cobbler.webui.master
#block body
+#import time
+
#if $image
<script language="javascript">
function disablename(value)
@@ -70,6 +72,27 @@ function disablename(value)
<input type="hidden" name="editmode" value="new"/>
#end if
+ #if $image
+ <tr>
+ <td>
+ <label>Created</label>
+ </td>
+ <td>
+ $time.ctime($image.ctime)
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <label>Last Modified</label>
+ </td>
+ <td>
+ $time.ctime($image.mtime)
+ </td>
+ </tr>
+ #end if
+
+
<tr>
<td>
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index ba397eee..ac11df78 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -1,6 +1,8 @@
#extends cobbler.webui.master
#block body
+#import time
+
#if $profile
<script language="javascript">
function disablename(value)
@@ -84,6 +86,27 @@ function disablename(value)
<input type="hidden" name="editmode" value="new"/>
#end if
+ #if $profile
+ <tr>
+ <td>
+ <label>Created</label>
+ </td>
+ <td>
+ $time.ctime($profile.ctime)
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <label>Last Modified</label>
+ </td>
+ <td>
+ $time.ctime($profile.mtime)
+ </td>
+ </tr>
+ #end if
+
+
#if $subprofile
<tr>
<td>
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 2804bce1..7452c9e6 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -1,6 +1,8 @@
#extends cobbler.webui.master
#block body
+#import time
+
#if $repo
<script language="javascript">
function disablename(value)
@@ -66,6 +68,27 @@ function disablename(value)
<input type="hidden" name="editmode" value="new"/>
#end if
+ #if $repo
+ <tr>
+ <td>
+ <label>Created</label>
+ </td>
+ <td>
+ $time.ctime($repo.ctime)
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <label>Last Modified</label>
+ </td>
+ <td>
+ $time.ctime($repo.mtime)
+ </td>
+ </tr>
+ #end if
+
+
<tr>
<td>
<label for="mirror">Mirror Location (http/ftp/rsync)</label>
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl
index d1d54636..8eec433d 100644
--- a/webui_templates/system_edit.tmpl
+++ b/webui_templates/system_edit.tmpl
@@ -1,5 +1,7 @@
#extends cobbler.webui.master
+#import time
+
#block body
<script language="javascript">
@@ -334,6 +336,26 @@ function page_onload() {
<input type="hidden" name="editmode" value="new"/>
#end if
+ #if $system
+ <tr>
+ <td>
+ <label>Created</label>
+ </td>
+ <td>
+ $time.ctime($system.ctime)
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <label>Last Modified</label>
+ </td>
+ <td>
+ $time.ctime($system.mtime)
+ </td>
+ </tr>
+ #end if
+
<tr>
<td>
<label for="profile">Profile</label>