Commit 6ef4d2e0 authored by Korko's avatar Korko
Browse files

Add current tag in fork me ribbon

parent 1f747ace
Pipeline #31628 passed with stage
in 6 minutes and 18 seconds
<?php
namespace Korko\SecretSanta\Providers;
use Illuminate\Support\ServiceProvider;
use View;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
View::composer('templates/layout', function($view)
{
$view->with('version', exec('git describe --tags --abbrev=0'))
->with('version_date', exec('git log -1 --format=%ai'));
});
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}
}
......@@ -174,6 +174,7 @@ return [
* Application Service Providers...
*/
Korko\SecretSanta\Providers\AppServiceProvider::class,
Korko\SecretSanta\Providers\ComposerServiceProvider::class,
Korko\SecretSanta\Providers\EventServiceProvider::class,
Korko\SecretSanta\Providers\RouteServiceProvider::class,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -351,8 +351,8 @@ footer .row {
transition: 0.5s;
width: 200px;
position: absolute;
top: 60px;
right: -60px;
top: 55px;
right: -50px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
......
......@@ -97,7 +97,7 @@
<!-- /.container -->
</footer>
<span id="forkongithub" class="hidden-sm"><a href="https://framagit.org/Korko/SecretSanta" title="Fork me on GitLab">Fork me on GitLab</a></span>
<span id="forkongithub" class="hidden-sm"><a href="https://framagit.org/Korko/SecretSanta" title="Fork me on GitLab">Fork me on GitLab<br/>Current version {{ $version }}</a></span>
@yield('script')
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment