correction bug d'affichage

This commit is contained in:
Yasder5 2026-02-11 17:46:01 +01:00
parent 7fbf005fdb
commit 4a96b41d03
13 changed files with 552 additions and 65 deletions

View file

@ -38,11 +38,13 @@
class="stretched-link small">
Lire la suite →
</a>
{if $smarty.session.user.user_id == $objProject->getUser()}
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}"
class="stretched-link small">
Editer
</a>
{if isset($smarty.session.user)}
{if $smarty.session.user.user_id == $objProject->getUser()}
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}"
class="stretched-link small">
Editer
</a>
{/if}
{/if}
</div>

View file

@ -59,7 +59,7 @@
<div class="col-lg-4">
<div class="card text-center shadow-sm p-4">
<a href="index.php?ctrl=user&action=user&id={$objProject->getUser()}" class="text-decoration-none text-dark">
<img src=".{$objProject->getUser_image()}"
<img src="{$objProject->getUser_image()}"
class="rounded-circle mb-3 mx-auto"
style="width:100px;height:100px;object-fit:cover;">
</a>

View file

@ -5,7 +5,7 @@
<section class="user-profile mb-5">
<div class="row">
<div class="col-md-4 text-center">
<img src="" alt="Avatar de {$user->getPseudo()}" class="img-fluid rounded-circle mb-3" style="max-width: 200px">
<img src="{$user->getImage()}" alt="Avatar de {$user->getPseudo()}" class="img-fluid rounded-circle mb-3" style="max-width: 200px">
</div>
<div class="col-md-8">
<h1>{$user->getPseudo()}</h1>
@ -30,9 +30,7 @@
<div class="row">
{if count($arrProjectToDisplay) > 0}
{foreach $arrProjectToDisplay as $objProject}
<div class="col-md-4 mb-4">
{include file="views/_partial/preview.tpl"}
</div>
{/foreach}
{else}
<p class="alert alert-info">Cet utilisateur n'a pas encore publié de projets.</p>