|
1 |
| -<div *ngIf="news"> |
2 |
| - |
3 |
| - <!-- Header--> |
4 |
| - <header class="bg-dark py-5" style="background-color: #454546 !important;"> |
5 |
| - <div class="container px-5"> |
6 |
| - <div class="row gx-5 align-items-center justify-content-center"> |
7 |
| - <div class="col-xl-5 col-xxl-6 d-none d-xl-block text-center"><img class="img-fluid rounded-3 my-5" |
8 |
| - src="/news/{{news?.id}}/image" alt="..." /></div> |
9 |
| - <div class="col-lg-8 col-xl-7 col-xxl-6"> |
10 |
| - <div class="my-5 text-center text-xl-start"> |
11 |
| - <h1 class="display-5 fw-bolder text-white mb-2" style="font-size: 40px;">{{news?.title}}</h1> |
12 |
| - <p class="lead fw-normal text-white-50 mb-4" style="color: aliceblue !important;">{{news?.argument}}</p> |
13 |
| - </div> |
| 1 | +<!-- Header--> |
| 2 | +<header class="bg-dark py-5" style="background-color: #454546 !important;"> |
| 3 | + <div class="container px-5"> |
| 4 | + <div class="row gx-5 align-items-center justify-content-center"> |
| 5 | + <div class="col-xl-5 col-xxl-6 d-none d-xl-block text-center"><img class="img-fluid rounded-3 my-5" |
| 6 | + [src]="newsImage()" alt="..." /></div> |
| 7 | + <div class="col-lg-8 col-xl-7 col-xxl-6"> |
| 8 | + <div class="my-5 text-center text-xl-start"> |
| 9 | + <h1 class="display-5 fw-bolder text-white mb-2" style="font-size: 40px;">{{news?.title}}</h1> |
| 10 | + <p class="lead fw-normal text-white-50 mb-4" style="color: aliceblue !important;">{{news?.argument}}</p> |
14 | 11 | </div>
|
15 | 12 | </div>
|
16 | 13 | </div>
|
| 14 | + </div> |
17 | 15 |
|
18 | 16 |
|
19 | 17 |
|
20 |
| - </header> |
| 18 | +</header> |
21 | 19 |
|
22 |
| - <div *ngIf="isAdmin()"> |
23 |
| - <section class="pt-0 MoreInfo"> |
24 |
| - <div class="container-fluid my-5"> |
25 |
| - <div class="row justify-content-center" style=" background-color: rgb(27, 31, 31); margin-bottom: 2%;"> |
26 |
| - <div class="col-5 text-center"> |
27 |
| - <p class="lead fw-normal text-white-50 mb-4" |
28 |
| - style="color: aliceblue !important; font-size: 2em !important; margin-top: 5%;"> Admin Actions : |
29 |
| - <a class="btn btn-primary btn-lg px-4 me-sm-3" [routerLink]="['/deleteNew/{{news?.id}}']" |
30 |
| - style="margin-top: auto;">Eliminar</a> |
31 |
| - <a class="btn btn-outline-light btn-lg px-4" [routerLink]="['/editNew/{{news?.id}}']" |
32 |
| - style="margin-top: auto;">Editar</a> |
33 |
| - </p> |
34 |
| - </div> |
35 |
| - </div> |
| 20 | + |
| 21 | +<section class="pt-0 MoreInfo" *ngIf="isAdmin()"> |
| 22 | + <div class="container-fluid my-5"> |
| 23 | + <div class="row justify-content-center" style=" background-color: rgb(27, 31, 31); margin-bottom: 2%;"> |
| 24 | + <div class="col-5 text-center"> |
| 25 | + <p class="lead fw-normal text-white-50 mb-4" |
| 26 | + style="color: aliceblue !important; font-size: 2em !important; margin-top: 5%;"> Admin Actions : |
| 27 | + <a class="btn btn-primary btn-lg px-4 me-sm-3" [routerLink]="['/deleteNew/{{news?.id}}']" |
| 28 | + style="margin-top: auto;">Eliminar</a> |
| 29 | + <a class="btn btn-outline-light btn-lg px-4" [routerLink]="['/editNew/{{news?.id}}']" |
| 30 | + style="margin-top: auto;">Editar</a> |
| 31 | + </p> |
36 | 32 | </div>
|
37 |
| - </section> |
| 33 | + </div> |
38 | 34 | </div>
|
| 35 | +</section> |
39 | 36 |
|
40 | 37 |
|
41 |
| - <!-- MoreInfo--> |
42 |
| - <section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: #FFFFFF !important;"> |
43 |
| - <div class="container px-5 my-5"> |
44 |
| - <div class="row gx-5 justify-content-center"> |
45 |
| - <div class="col-md-12"> |
46 |
| - <h1 style="padding-bottom: 10px;">Leer más:</h1> |
47 |
| - <p class=""> |
48 |
| - {{news?.description}} |
49 |
| - </p> |
50 |
| - </div> |
51 | 38 |
|
| 39 | +<!-- MoreInfo--> |
| 40 | +<section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: #FFFFFF !important;"> |
| 41 | + <div class="container px-5 my-5"> |
| 42 | + <div class="row gx-5 justify-content-center"> |
| 43 | + <div class="col-md-12"> |
| 44 | + <h1 style="padding-bottom: 10px;">Leer más:</h1> |
| 45 | + <p class=""> |
| 46 | + {{news?.description}} |
| 47 | + </p> |
52 | 48 | </div>
|
53 | 49 |
|
54 | 50 | </div>
|
55 |
| - </section> |
56 |
| - |
57 |
| - <section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: inherit !important;"> |
58 |
| - <div class="container px-5 my-5"> |
59 |
| - <div class="row gx-5 justify-content-center"> |
60 |
| - <!--{{>videogameTemplate}}--> |
61 |
| - </div> |
62 |
| - </div> |
63 |
| - </section> |
64 | 51 |
|
| 52 | + </div> |
| 53 | +</section> |
65 | 54 |
|
| 55 | +<section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: inherit !important;"> |
| 56 | + <div class="container px-5 my-5"> |
| 57 | + <div class="row gx-5 justify-content-center"> |
| 58 | + <!--{{>videogameTemplate}}--> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | +</section> |
66 | 62 |
|
67 |
| - <!-- Bootstrap core JS--> |
68 |
| - <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script> |
69 |
| - <!-- Core theme JS--> |
70 |
| - <script src="js/scripts.js"></script> |
71 | 63 |
|
72 | 64 |
|
73 |
| -</div> |
| 65 | +<!-- Bootstrap core JS--> |
| 66 | +<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script> |
| 67 | +<!-- Core theme JS--> |
| 68 | +<script src="js/scripts.js"></script> |
0 commit comments