Skip to content

Commit

Permalink
Add build information to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
drmathias committed Jan 26, 2021
1 parent 026b823 commit 9cdb6e0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ stages:
buildConfiguration: 'Release'

steps:
- task: replacetokens@3
displayName: 'Replace Variables'
inputs:
targetFiles: 'src/input/**/*'
encoding: 'auto'
writeBOM: true
actionOnMissing: 'warn'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
useLegacyPattern: false
enableTelemetry: false

- task: DotNetCoreCLI@2
displayName: Restore
inputs:
Expand Down
4 changes: 2 additions & 2 deletions src/input/_layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
</div>
</div>
<footer class="py-3 font-size-sm shadow-above">
<div class="container d-flex">
<span class="flex-grow-1"@DateTime.Today.Year Adam Shirt</span>
<div class="container d-flex flex-wrap">
<span class="flex-grow-1 text-nowrap"@DateTime.Today.Year Adam Shirt | Version: <a href=https://dev.azure.com/developmomentum/Develop%20Momentum/_build/results?buildId=#{Build.BuildId}#&view=results>#{Build.BuildNumber}#</a></span>
<ul class="m-n2 d-flex list-unstyled social">
<li class="m-2">
<a href="https://skynet.developmomentum.com" aria-label="Skynet" target="_blank">
Expand Down
4 changes: 2 additions & 2 deletions src/input/blog/_layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
}
</div>
<footer class="py-3 font-size-sm shadow-above">
<div class="container d-flex">
<span class="flex-grow-1"@DateTime.Today.Year Adam Shirt</span>
<div class="container d-flex flex-wrap">
<span class="flex-grow-1 text-nowrap"@DateTime.Today.Year Adam Shirt | Version: <a href=https://dev.azure.com/developmomentum/Develop%20Momentum/_build/results?buildId=#{Build.BuildId}#&view=results>#{Build.BuildNumber}#</a></span>
<ul class="m-n2 d-flex list-unstyled social">
<li class="m-2">
<a href="https://skynet.developmomentum.com" aria-label="Skynet" target="_blank">
Expand Down
4 changes: 2 additions & 2 deletions src/input/blog/latest/_layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
</div>
</div>
<footer class="py-3 font-size-sm shadow-above">
<div class="container d-flex">
<span class="flex-grow-1"@DateTime.Today.Year Adam Shirt</span>
<div class="container d-flex flex-wrap">
<span class="flex-grow-1 text-nowrap"@DateTime.Today.Year Adam Shirt | Version: <a href=https://dev.azure.com/developmomentum/Develop%20Momentum/_build/results?buildId=#{Build.BuildId}#&view=results>#{Build.BuildNumber}#</a></span>
<ul class="m-n2 d-flex list-unstyled social">
<li class="m-2">
<a href="https://skynet.developmomentum.com" aria-label="Skynet" target="_blank">
Expand Down
4 changes: 2 additions & 2 deletions src/input/misc/_layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
</div>
</div>
<footer class="py-3 font-size-sm shadow-above">
<div class="container d-flex">
<span class="flex-grow-1"@DateTime.Today.Year Adam Shirt</span>
<div class="container d-flex flex-wrap">
<span class="flex-grow-1 text-nowrap"@DateTime.Today.Year Adam Shirt | Version: <a href=https://dev.azure.com/developmomentum/Develop%20Momentum/_build/results?buildId=#{Build.BuildId}#&view=results>#{Build.BuildNumber}#</a></span>
<ul class="m-n2 d-flex list-unstyled social">
<li class="m-2">
<a href="https://skynet.developmomentum.com" aria-label="Skynet" target="_blank">
Expand Down

0 comments on commit 9cdb6e0

Please sign in to comment.