You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2015/09/09 19:12:10 UTC

fauxton commit: updated refs/heads/master to 3da9276

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 146688928 -> 3da92763e


Add generation date to index.html

Small thing: this just adds a UTC date for the time the index.html
file was last generated. Useful so we have an easy way to figure
out when the code was last built.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/3da92763
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/3da92763
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/3da92763

Branch: refs/heads/master
Commit: 3da92763e400385948502064fac18234b74ac787
Parents: 1466889
Author: Ben Keen <be...@gmail.com>
Authored: Wed Sep 9 08:33:57 2015 -0700
Committer: Ben Keen <be...@gmail.com>
Committed: Wed Sep 9 08:33:57 2015 -0700

----------------------------------------------------------------------
 Gruntfile.js            | 4 ++++
 assets/index.underscore | 3 +++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/3da92763/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index 5c5c854..9db0e36 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -125,9 +125,13 @@ module.exports = function (grunt) {
     var i18n = JSON.stringify(initHelper.readI18nFile(), null, ' ');
 
     Object.keys(settings.template).forEach(function (key) {
+      settings.template[key].variables.generationDate = new Date().toISOString();
       settings.template[key].app.i18n = i18n;
     });
 
+    // add the generation date to all
+//    settings.template[key].generationDate": new Date().toISOString()
+
     return settings.template || defaultSettings;
   }();
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/3da92763/assets/index.underscore
----------------------------------------------------------------------
diff --git a/assets/index.underscore b/assets/index.underscore
index fc669ec..095bf10 100644
--- a/assets/index.underscore
+++ b/assets/index.underscore
@@ -43,5 +43,8 @@
 
   <!-- Application source. -->
   <script data-main="/config" src="<%= requirejs %>"></script>
+
+  <!-- Generated: <%= generationDate %> -->
+
 </body>
 </html>