File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ HTTP_CHUNK_SIZE = 10485760 # ~10MB
8484CURRENT_BRANCH = {{ " #{ ` git branch | sed -n '/* /s///p'` .strip} " }}
8585CURRENT_COMMIT = {{ " #{ ` git rev-list HEAD --max-count=1 --abbrev-commit` .strip} " }}
8686CURRENT_VERSION = {{ " #{ ` git log -1 --format=%ci | awk '{print $1}' | sed s/-/./g` .strip} " }}
87+ CURRENT_TAG = {{ " #{ ` git tag --points-at HEAD` .strip} " }}
8788
8889# This is used to determine the `?v=` on the end of file URLs (for cache busting). We
8990# only need to expire modified assets, so we can use this to find the last commit that changes
Original file line number Diff line number Diff line change 150150 <i class =" icon ion-ios-wallet" ></i >
151151 <a href =" https://invidious.io/donate/" ><%= translate(locale, " footer_donate_page" ) %> </a >
152152 </span >
153- <span ><%= translate(locale, " Current version: " ) %> <%= CURRENT_VERSION %> -<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %> </span >
153+ <span >
154+ <%= translate(locale, " Current version: " ) %>
155+ <% if CONFIG .modified_source_code_url %>
156+ <a href =" <%= CONFIG .modified_source_code_url %> /commit/<%= CURRENT_COMMIT %> " ><%= CURRENT_VERSION %> -<%= CURRENT_COMMIT %> </a >
157+ <% else %>
158+ <a href =" https://github.com/iv-org/invidious/commit/<%= CURRENT_COMMIT %> " ><%= CURRENT_VERSION %> -<%= CURRENT_COMMIT %> </a >
159+ <% end %>
160+ @ <%= CURRENT_BRANCH %>
161+ <% if CURRENT_TAG != " " %>
162+ (
163+ <% if CONFIG .modified_source_code_url %>
164+ <a href =" <%= CONFIG .modified_source_code_url %> /releases/tag/<%= CURRENT_TAG %> " ><%= CURRENT_TAG %> </a >
165+ <% else %>
166+ <a href =" https://github.com/iv-org/invidious/releases/tag/<%= CURRENT_TAG %> " ><%= CURRENT_TAG %> </a >
167+ <% end %>
168+ )
169+ <% end %>
170+ </span >
154171 </div >
155172 </div >
156173 </footer >
You can’t perform that action at this time.
0 commit comments