Comments (5)
Fitxer header.blade.php
Formatarem al sortida de dades:
Codi antic
<v-flex xs12>
<ul>
<li>Nom : {{ Auth::user()->name }}</li>
<li>Email : {{ Auth::user()->email }}</li>
<li>Admin : {{ Auth::user()->admin }}</li>
<li>Roles : {{ implode(',',Auth::user()->map()['roles']) }}</li>
<li>Permissions : {{ implode(', ',Auth::user()->map()['permissions']) }}</li>
</ul>
</v-flex>
Codi nou
<v-card-text class="text-xs-center">
<v-flex xs12>
<v-avatar>
<img src="https://www.gravatar.com/avatar/{{ md5(Auth::user()->email) }}" alt="avatar">
</v-avatar>
<p></p>
<p>{{ Auth::user()->name }}</p>
<p></p>
<h3>Correu</h3>
<p>{{ Auth::user()->email }}</p>
<p></p>
<h3>Administrador</h3>
@if(Auth::user()->admin == 1)
<p>Si</p>
@else
<p>No</p>
@endif
<p></p>
<h3>Rols</h3>
<p> {{ implode(', ',Auth::user()->map()['roles']) }}</p>
<p></p>
<h3>Permisos</h3>
<p> {{ implode(', ',Auth::user()->map()['permissions']) }}</p>
</v-flex>
</v-card-text>
馃敟 RESULTAT 馃敟
from tasks.
Afegit bot贸 per aconseguir un estil m茅s net i eliminar l铆nia de text per sortir.
@impersonating
<v-btn title="Abandonar suplantaci贸" href="impersonate/leave" flat class="white--text" icon>
<v-icon >exit_to_app</v-icon></v-btn>
@endImpersonating
馃敟 RESULTAT 馃敟
Amb el @impersonating aconseguim que el boto sols surti durant la suplantaci贸 d'un usuari.
Sense suplantaci贸
from tasks.
馃敀
from tasks.
Millorem un poc mes l'estil de la carta! Per ferla m茅s vistosa! 馃敟 馃帀 馃挴
Codi
<v-img class="text-xs-center" src="img/background_user.jpeg" aspect-ratio="2.75">
<p></p>
<v-avatar>
<img src="https://www.gravatar.com/avatar/{{ md5(Auth::user()->email) }}" alt="avatar">
</v-avatar><p></p>
<h3 class="white--text">{{ Auth::user()->name }}</h3>
<p></p>
</v-img>
from tasks.
Ara si ja tanco... 馃槃 馃憤 馃敀
from tasks.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google 鉂わ笍 Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasks.