Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 383efcf2 authored by 65160394's avatar 65160394
Browse files

Project Round 8

parent 6494da1e
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<header> <header>
<h1>Welcome to JourneyHub</h1> <h1>Welcome to JourneyHub</h1>
<nav> <nav>
<% if (session.userId) { %> <% if (session.id) { %>
<a href="/create" class="btn-create">Create Tour</a> <a href="/create" class="btn-create">Create Tour</a>
<% } %> <% } %>
<form action="/search" method="GET" class="search-container"> <form action="/search" method="GET" class="search-container">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<button type="submit">Search</button> <button type="submit">Search</button>
</form> </form>
<% if (session && session.userId) { %> <!-- ตรวจสอบ session --> <% if (session && session.id) { %> <!-- ตรวจสอบ session -->
<a href="/logout">Logout</a> <a href="/logout">Logout</a>
<a href="/my-bookings">My-Booking</a> <a href="/my-bookings">My-Booking</a>
<% } else { %> <% } else { %>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<li> <li>
<a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB <a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB
<% if (session.userId) { %> <% if (session.id) { %>
<a href="/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ --> <a href="/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ -->
<a href="/delete/<%= tour.id %>" class="btn-delete">Delete</a> <!-- ปุ่มสำหรับลบทัวร์ --> <a href="/delete/<%= tour.id %>" class="btn-delete">Delete</a> <!-- ปุ่มสำหรับลบทัวร์ -->
<% } %> <% } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment