Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ho tinc que arreglar que m'agafa un xungo al voreu #4

Closed
Marinsan opened this issue Dec 11, 2018 · 5 comments
Closed

Ho tinc que arreglar que m'agafa un xungo al voreu #4

Marinsan opened this issue Dec 11, 2018 · 5 comments

Comments

@Marinsan
Copy link
Owner

image

@Marinsan Marinsan changed the title Perfavor arreglau que m'agafa un xungo al voreu Ho tinc que arreglar que m'agafa un xungo al voreu Dec 11, 2018
@Marinsan
Copy link
Owner Author

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 🔥

image

@Marinsan
Copy link
Owner Author

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.

image

Sense suplantació

image

@Marinsan Marinsan reopened this Dec 11, 2018
@Marinsan
Copy link
Owner Author

🔒

@Marinsan
Copy link
Owner Author

Millorem un poc mes l'estil de la carta! Per ferla més vistosa! 🔥 🎉 💯

image

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>

@Marinsan Marinsan reopened this Dec 11, 2018
@Marinsan
Copy link
Owner Author

Ara si ja tanco... 😄 👍 🔒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant