mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed images in Users view
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
@using Berufsschule_HAM.Models
|
||||
@using System.Buffers.Text
|
||||
@model UsersIndexViewModel
|
||||
@inject IViewLocalizer T
|
||||
@{
|
||||
@@ -20,7 +21,7 @@
|
||||
<table class="table table-striped align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User Photo</th>
|
||||
<th style="width: 2rem;"></th>
|
||||
<th>User ID</th>
|
||||
<th>title</th>
|
||||
<th>Name</th>
|
||||
@@ -34,7 +35,9 @@
|
||||
foreach (UserTableViewModel userTableViewModel in Model.UserTableViewModels)
|
||||
{
|
||||
<tr>
|
||||
<td>@@userTableViewModel.JpegPhoto</td>
|
||||
<td>
|
||||
<img class="rounded-circle user-icon" src="data:image/jpeg;base64,@userTableViewModel.JpegPhoto" alt="Photo" style="max-width:300px;" />
|
||||
</td>
|
||||
<td>@userTableViewModel.Uid</td>
|
||||
<td>@userTableViewModel.Title</td>
|
||||
<td>@userTableViewModel.Name</td>
|
||||
|
||||
Reference in New Issue
Block a user