Browse Source

Use uppercase for constants

jdcaballerov 5 years ago
parent
commit
d4bca80b50
2 changed files with 3 additions and 2 deletions
  1. 1 1
      archivebox/index/html.py
  2. 2 1
      archivebox/themes/default/main_index.html

+ 1 - 1
archivebox/index/html.py

@@ -61,7 +61,7 @@ def main_index_template(links: List[Link], template: str=MAIN_INDEX_TEMPLATE) ->
         'date_updated': datetime.now().strftime('%Y-%m-%d'),
         'date_updated': datetime.now().strftime('%Y-%m-%d'),
         'time_updated': datetime.now().strftime('%Y-%m-%d %H:%M'),
         'time_updated': datetime.now().strftime('%Y-%m-%d %H:%M'),
         'links': [link._asdict(extended=True) for link in links],
         'links': [link._asdict(extended=True) for link in links],
-        'footer_info': FOOTER_INFO,
+        'FOOTER_INFO': FOOTER_INFO,
     })
     })
 
 
 
 

+ 2 - 1
archivebox/themes/default/main_index.html

@@ -222,6 +222,7 @@
                 </div>
                 </div>
             </div>
             </div>
         </header>
         </header>
+        
         <table id="table-bookmarks">
         <table id="table-bookmarks">
             <thead>
             <thead>
                 <tr>
                 <tr>
@@ -242,7 +243,7 @@
             <center>
             <center>
                 <small>
                 <small>
                     Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a>
                     Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a>
-                    version <a href="https://github.com/ArchiveBox/ArchiveBox/tree/v{{version}}" title="Git commit">v{{version}}</a> &nbsp; | &nbsp; 
+                    version <a href="https://github.com/ArchiveBox/ArchiveBox/tree/v{{VERSION}}" title="Git commit">v{{VERSION}}</a> &nbsp; | &nbsp; 
                     Download index as <a href="index.json" title="JSON summary of archived links.">JSON</a>
                     Download index as <a href="index.json" title="JSON summary of archived links.">JSON</a>
                     <br/><br/>
                     <br/><br/>
                     {{FOOTER_INFO}}
                     {{FOOTER_INFO}}