Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • bf33eb69d0d1be4a8a85d70f12663ae83c632026
  • main default protected
2 results

search.ejs

Blame
  • Atiwit Pattanapukdee's avatar
    65160394 authored
    bf33eb69
    History
    search.ejs 352 B
    <link rel="stylesheet" href="/css/search.css">
    <h2>Search Results</h2>
    
    <ul>
      <% if (tours.length > 0) { %>
        <% tours.forEach(tour => { %>
          <li>
            <a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB
          </li>
        <% }) %>
      <% } else { %>
        <p>No tours found</p>
      <% } %>
    </ul>
    
    <a href="/">Back to Home</a>