6b0d6c36af
In order to migrate IDP from LV 4.x to latest LV version, following task were performed: * Updated namespace to be complain with PSR-4 * General Refactoring: moved all DB access code from services to repositories. * Migration to LV 5.X: these migration guides were applied - https://laravel.com/docs/5.3/upgrade#upgrade-5.0 - https://laravel.com/docs/5.3/upgrade#upgrade-5.1.0 - https://laravel.com/docs/5.3/upgrade#upgrade-5.2.0 * Improved caching: added repositories decorators in order to add REDIS cache to queries, entities Change-Id: I8edf9f5fce6585129701c88bb88332f242307534
71 lines
2.7 KiB
PHP
71 lines
2.7 KiB
PHP
@extends('layout')
|
|
@section('title')
|
|
<title>Welcome to OpenStackId</title>
|
|
@stop
|
|
@section('meta')
|
|
<meta http-equiv="X-XRDS-Location" content="{!! URL::action("OpenId\DiscoveryController@user", ['identifier'=> $identifier ]) !!}" />
|
|
@append
|
|
@section('content')
|
|
<div class="container">
|
|
@if(Auth::guest() || $another_user)
|
|
@if( $show_fullname === 0 && $show_email===0 && $show_pic === 0)
|
|
<p>This is an OpenID Identity page. This user has chosen not to display any information on this page.</p>
|
|
@else
|
|
@if( $show_fullname )
|
|
<legend>{!! $username !!}</legend>
|
|
@endif
|
|
@if( $show_pic && !empty($pic))
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<img src="{!!$pic !!}" class="img-thumbnail">
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@if( $show_email )
|
|
<div class="row email-row">
|
|
<div class="col-md-4">
|
|
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
|
|
<a href="mailto:{!! $email !!}">{!! $email !!}</a>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@else
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
Welcome, {!! $username !!} .
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<a class="btn btn-default btn-sm active" href="{!! URL::action('UserController@getProfile') !!}">edit your profile</a>
|
|
<a class="btn btn-default btn-sm active" href="{!! URL::action('UserController@logout') !!}">logout</a>
|
|
</div>
|
|
</div>
|
|
@if( $show_fullname === 0 && $show_email===0 && $show_pic === 0)
|
|
<p>
|
|
This is your identity page. You are currently displaying no information on this page. You can display information such as your name, contact info and a photo.
|
|
</p>
|
|
@else
|
|
@if( $show_fullname )
|
|
<legend>{!! $username !!}</legend>
|
|
@endif
|
|
@if( $show_pic && !empty($pic))
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<img src="{!! $pic !!}" class="img-thumbnail">
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@if( $show_email )
|
|
<div class="row email-row">
|
|
<div class="col-md-4">
|
|
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
|
|
<a href="mailto:{!! $email !!}">{!! $email !!}</a>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@endif
|
|
</div>
|
|
@stop |