Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from unb-mds/fix/dropdown-menu-boundaries
Browse files Browse the repository at this point in the history
[fix] Consertar menu dropdown da barra de navegação
  • Loading branch information
bitterteriyaki authored Oct 11, 2023
2 parents b35d6d8 + 1d1c148 commit cd0db71
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
7 changes: 7 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock title %} | Virtual Judge</title>

<style>
.dropdown-menu {
transform: translateX(-40%);
}
</style>

</head>
<body class="bg-light">
<header>
Expand Down
6 changes: 4 additions & 2 deletions templates/contests/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ <h2>Tasks</h2>
<tr>
<td>
{% if problem.is_accessible %}
<a href="{% url 'problems:detail' problem.id %}">{{ problem }}</a>
<a href="{% url 'problems:detail' problem.id %}">
{{ problem }}
</a>
{% else %}
{{ problem }}
{% endif %}
Expand All @@ -49,7 +51,7 @@ <h2>Tasks</h2>
</td>
<td>
{% if problem.time_limit %}
{{ problem.time_limit}}
{{ problem.time_limit }}
second{{ problem.time_limit|pluralize:"s" }}
{% else %}
Unlimited
Expand Down
35 changes: 33 additions & 2 deletions templates/problems/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
{% block title %}{{ problem.title }}{% endblock title %}

{% block content %}
<h1>{{ problem.title }}</h1>
<p>{{ problem.description }}</p>
<div>
<h1>
<a href="{% url 'problems:detail' problem.id %}">
{{ problem.title }}
</a>
</h1>
<hr>

<div>
<p>
<b>Score:</b> {{ problem.score|default:"???" }}
</p>
<p>
<b>Memory limit:</b>
{% if problem.memory_limit %}
{{ problem.memory_limit|filesizeformat }}
{% else %}
Unlimited
{% endif %}
</p>
<p>
<b>Time limit:</b>
{% if problem.time_limit %}
{{ problem.time_limit }}
second{{ problem.time_limit|pluralize:"s" }}
{% else %}
Unlimited
{% endif %}
</p>
</div>
<hr>
<p>{{ problem.description }}</p>
</div>
{% endblock content %}

0 comments on commit cd0db71

Please sign in to comment.