Added better link style, and import links in the course entity page.

This commit is contained in:
Andrew Lalis 2019-04-16 23:09:30 +02:00 committed by andrewlalis
parent a629b70d8b
commit 9301cbba91
2 changed files with 14 additions and 6 deletions

View File

@ -27,6 +27,11 @@ body {
color: whitesmoke; color: whitesmoke;
} }
.sidebar_block:hover { .sidebar_block a {
background-color: gray; text-decoration: underline;
color: inherit;
}
.sidebar_block a:hover {
color: lightgreen;
} }

View File

@ -7,10 +7,8 @@
<body> <body>
<div id="content"> <div id="content">
<h1 th:text="${course.getName()}"></h1> <h1><span th:text="${course.getName()}"></span> (Code: <span th:text="${course.getCode()}"></span>)</h1>
<h2 th:text="${course.getCode()}"></h2>
<h2>Created on: <span th:text="${course.getCreatedOn()}"></span></h2> <h2>Created on: <span th:text="${course.getCreatedOn()}"></span></h2>
<h2>Id: <span th:text="${course.getId()}"></span></h2>
<hr> <hr>
<h3>Teaching Assistant Groups (<span th:text="${course.getTeachingAssistantTeams().size()}"></span>):</h3> <h3>Teaching Assistant Groups (<span th:text="${course.getTeachingAssistantTeams().size()}"></span>):</h3>
<table> <table>
@ -29,7 +27,12 @@
</div> </div>
<div id="sidebar"> <div id="sidebar">
<div class="sidebar_block">
<a th:href="@{/courses/{code}/import_students(code=${course.getCode()})}">Import students from CSV</a>
</div>
<div class="sidebar_block">
<a th:href="@{/courses/{code}/import_teaching_assistants(code=${course.getCode()})}">Import teaching assistants from CSV</a>
</div>
</div> </div>
</body> </body>