Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/resources/static/css/techjobs.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ tr:nth-child(odd) {
margin-right: auto;
}

.centeredTable td {
padding: 10px 40px;
}

table.job-listing {
margin: 30px auto;
border: 1px solid #e4e4e4;
Expand Down
14 changes: 10 additions & 4 deletions src/main/resources/templates/employers/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ <h1 th:text="${'Employer: ' + employer.name}">Default Title</h1>

<nav th:replace="fragments :: page-header"></nav>

<div class="job-listing">
<p th:text="${'Name: ' + employer.name}"></p>
<p th:text="${'Location: ' + employer.location}"></p>
</div>
<table class="job-listing">
<tr>
<th>Name</th>
<td th:text="${employer.name}"></td>
</tr>
<tr>
<th>Location</th>
<td th:text="${employer.location}"></td>
</tr>
</table>


</body>
Expand Down
39 changes: 20 additions & 19 deletions src/main/resources/templates/list-jobs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,27 @@

<h1 th:text="${#strings.capitalizeWords(title)}"></h1>

<table class="job-listing">
<tr th:each="job : ${jobs}">
<table class="job-listing" th:each="job : ${jobs}">
<tr>
<th>ID</th>
<td>
<p>
Job Id:
<a th:href="@{'/view/' + ${job.id}}" th:text="${job.id}"></a>
</p>
<p th:text="${'Name: ' + job.name}"></p>
<p>
Employer:
<a th:href="@{'/employers/view/' + ${job.employer.id}}" th:text="${job.employer.name}"></a>
</p>
<p>
Skills:
<ul th:each="skill : ${job.skills}">
<li>
<a th:href="@{'/skills/view/' + ${skill.id}}" th:text="${skill.name}"></a>
</li>
</ul>
</p>
<a th:href="@{'/view/' + ${job.id}}" th:text="${job.id}"></a>
</td>
</tr>
<tr>
<th>Name</th>
<td th:text="${job.name}"></td>
</tr>
<tr>
<th>Employer</th>
<td>
<a th:href="@{'/employers/view/' + ${job.employer.id}}" th:text="${job.employer.name}"></a>
</td>
</tr>
<tr>
<th>Skills</th>
<td>
<a th:each="skill : ${job.skills}" th:href="@{'/skills/view/' + ${skill.id}}" th:text="${skill.name + '&nbsp;&nbsp;&nbsp;'}"></a>
</td>
</tr>
</table>
Expand Down