Skip to content
Merged
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
10 changes: 7 additions & 3 deletions db/mods.json
Original file line number Diff line number Diff line change
Expand Up @@ -3472,7 +3472,9 @@
"games": [
"BG"
],
"authors": [],
"authors": [
"CoM_Solaufein"
],
"team": [],
"notes": [
"Ce mod n'est plus disponible car il a été intégré dans le mod [[285]]."
Expand Down Expand Up @@ -8814,7 +8816,9 @@
"BG2",
"BGT"
],
"authors": [],
"authors": [
"Craig"
],
"team": [],
"notes": [],
"translation_state": "auto",
Expand All @@ -8823,7 +8827,7 @@
"status": "missing",
"last_update": "2004-01",
"compatibilities": {},
"tp2": ""
"tp2": "bottomless"
},
{
"id": 265,
Expand Down
2 changes: 1 addition & 1 deletion db/mods_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@
},
{
"id": 102,
"description": "Created for BG with its Tales of the Sword Coast expansion, this mod adds a new blacksmith located at the Friendly Arm Inn: Thorengrim Poingmarteau. He sells new items and, like Cromwell, can improve 11 others. In addition to its merchant aspect, this mod adds 3 new encounters: ogres in the Bandit Camp, a duergar and his menagerie in the Nashkel mines, and drunken sailors trying to rob you at Baldur's Gate.",
"description": "Created for BG with its Tales of the Sword Coast expansion, this mod adds a new blacksmith located at the Friendly Arm Inn: Thorengrim Hammerfist. He sells new items and, like Cromwell, can improve 11 others. In addition to its merchant aspect, this mod adds 3 new encounters: ogres in the Bandit Camp, a duergar and his menagerie in the Nashkel mines, and drunken sailors trying to rob you at Baldur's Gate.",
"description_meta": {
"status": "needs_review",
"source": "Créé pour BG avec son extension Tales of the Sword Coast, ce mod ajoute un nouveau forgeron situé à l'Auberge de Brasamical : Thorengrim Poingmarteau. Celui vend de nouveaux objets et, à l'instar de Cromwell, peut en améliorer 11 autres. Outre son aspect marchand, ce mod ajoute 3 nouvelles rencontres : des ogres dans le Camp des Bandits, un duergar et sa ménagerie dans les mines de Nashkel, et enfin des marins saouls qui tenteront de vous détrousser à la Porte de Baldur."
Expand Down
61 changes: 53 additions & 8 deletions docs/static/css/list.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ label {
padding: 5px 60px 13px 60px;
border-radius: 3px 4px 3px 3px;
box-shadow: 8px 8px 15px black;
margin-bottom: 50px;
}

#header .nav-2 {
Expand All @@ -150,10 +149,37 @@ label {
text-shadow: 0.1rem 0.1rem 0.25rem black;
}

#header .language-picker {
text-align: center;
margin-block: 10px;
.breadcrumb {
display: flex;
gap: 10px;
margin-block: 32px;
font-size: 18px;
}

.breadcrumb a::after {
content: " /";
}

.language-picker {
display: flex;
align-items: center;
justify-content: center;
}


.language-picker a {
font-size: 20px;
padding: 10px;
}

.language-picker a::before {
content: "•  ";
}

#header .credits div {
display: grid;
column-gap: 20px;
grid-template-columns: 150px 1fr;
}

.intro {
Expand Down Expand Up @@ -271,7 +297,8 @@ section {
margin-bottom: 1rem;
}

#maindiv .content {
#maindiv .content,
#homediv .content {
color: #deded9;
background: var(--color-background) url("../img/fond_descr_forum.avif");
border: 1px solid var(--color-secondary);
Expand All @@ -281,7 +308,8 @@ section {
display: block;
}

#maindiv .content .text {
#maindiv .content .text,
#homediv .content .text {
padding: 25px 5%;
font-size: var(--font-size-medium);
text-align: justify;
Expand All @@ -302,12 +330,29 @@ section {
letter-spacing: .2rem;
}

#maindiv .tables {
#maindiv .tables,
#homediv .tables {
display: grid;
grid-template-columns: 66% 34%;
gap: 1rem;
}

#homediv .stats {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 16px;
margin-block: 16px;
}

#homediv .stats div {
display: grid;
border: 1px solid var(--color-primary);
padding: 8px 16px;
justify-items: center;
}

.legend {
font-size: var(--font-size-medium);
border: 1px solid var(--color-secondary);
Expand Down Expand Up @@ -337,7 +382,7 @@ section {
background: var(--background-secondary);
}

details[open]>summary.category_name {
#maindiv details[open]>summary.category_name {
position: sticky;
top: 102px;
z-index: 5;
Expand Down
110 changes: 7 additions & 103 deletions docs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,108 +14,12 @@
</head>

<body>
<script src="{{ static }}js/main.js"></script>
<a id="gotothetop" href="#top" title={{ _(trans["back"]) }}></a>
<div id="cartouche">
<div id="header">
<h1>{{ _(trans["mod_list"]) }}</h1>
<div class="language-picker">
{% for language_url, flag in language_flags.items() %}
<a href="https://riwspy.github.io/lcc-docs/{{ language_url }}/">{{ flag }}{% if not loop.last %} • {% endif %}</a>
{% endfor %}
</div>
<hr>
<div class="nav-2">
<img class="main"
src="{{ static }}img/logo_lcc.avif"
title="La Couronne de Cuivre"
alt="La Couronne de Cuivre"
height="215"
width="885" />
<div class="credits">
<p>
<strong>{{ _(trans["author"]) }}</strong> <a href="https://www.baldursgateworld.fr/memberlist.php?mode=viewprofile&u=12382">Freddy_Gwendo (aka Gwendolyne)</a>
</p>
<p>
<strong>{{ _(trans["maintainer"]) }}</strong> <a href="https://www.baldursgateworld.fr/memberlist.php?mode=viewprofile&u=12905">rivvers</a>
</p>
<p>
<strong>Version :</strong> <span id="version">3.9.0</span>
</p>
<p>
<a href="https://www.baldursgateworld.fr/viewtopic.php?t=34779">{{ _(trans["discussion"]) }} CC</a> • <a href="https://www.gibberlings3.net/forums/topic/40557-the-copper-coronet-mods-list/">{{ _(trans["discussion"]) }} G3</a> • <a href="https://github.com/RiwsPy/lcc-docs">GitHub</a>
</p>
</div>
</div>
</div>

<section id="maindiv">
<!-- ================== I n t r o d u c t i o n ================== -->
<a name="intro" id="intro"></a>
<div class="content">
<h2 class="background">{{ _(trans["introduction"]) }}</h2>
<div class="text">
<div class="intro">
{% for intro in trans["intros"] %}
<p>{{ _(intro) }}</p>
{% endfor %}
</div>
<p class="title">{{ _(trans["mod_nb"]) }}<strong>{{ mod_length }}</strong></p>
<div class="tables">
<div class="legend">
<p class="title">{{ _(trans["legend"]) }}</p>
<p>
<strong>{{ _(trans["mod_quality"]) }}</strong>
</p>
<ul>
{% for icon_data in attrs_icon_data.safe.values() %}
<li>{{ icon_data.icon }} {{ _(icon_data.label) }}</li>
{% endfor %}
</ul>
<p>
<strong>{{ _(trans["translation_state"]) }}</strong>
</p>
<ul>
{% for icon_data in attrs_icon_data.translation_state_auto.values() %}
<li>{{ icon_data.icon }} {{ _(icon_data.label) }}</li>
{% endfor %}
</ul>

<p>
<strong>{{ _(trans["weidu_mod"]) }}</strong>
</p>
<ul>
{% for icon_data in attrs_icon_data.is_weidu.values() %}
<li>{{ icon_data.icon }} {{ _(icon_data.label) }}</li>
{% endfor %}
</ul>
</div>
<div class="warning">
<p class="titre">⚠️ {{ _(trans["wargning_title"]) }} ⚠️</p>
<ul>
{% for warning in trans["warnings"] %}
<li>{{ _(warning) }}</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="table">
<h2 id="top" class="background">{{ _(trans["advanced_filters"]) }}</h2>
<div id="search">{% include "search.html" %}</div>
</section>
<section id="search_text" class="table">
<h3>{{ _(trans["search"]) }}</h3>
<input id="search-text"
type="text"
placeholder={{ _(trans["mod_name"]) }}
oninput="filterMod()">
</section>

{% for category, mods in categories.items() %}<section class="table">{% include "category.html" %}</section>{% endfor %}

</div>
{% include "header.html" %}

{% if is_home_page %}
{% include "home_page.html" %}
{% else %}
{% include "list_page.html" %}
{% endif %}
</body>
</html>
55 changes: 2 additions & 53 deletions docs/templates/category.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details class="category_container" data-name="{{ _(category.value) }}" open>
<summary class="no-summary-style category_name h2-style" data-count="0" id="{{ category.id }}">{{ _(category.value) }}</summary>
<summary class="no-summary-style category_name h2-style" data-count="{{ mods|length }}" id="{{ category.id }}">{{ _(category.value) }}</summary>
<div class="category">
<div class="row game">
<p>{{ _(trans["mod"]) }}</p>
Expand All @@ -10,58 +10,7 @@
<img src="{{ static }}img/download.png" title="Téléchargement" alt="Image de téléchargement" width="42" height="42">
</div>
{% for mod in mods %}
<div class="row mod" id="m{{ mod.id }}">
<details class="column title update-hash-parent">
<summary class="name">{{ mod.name }}</summary>
</details>
<div class="column icons">
{% for icon in mod.icons %}<span aria-label='{{ _(icon.label) }}'>{{ icon.icon }}</span>{% endfor %}
</div>
<div class="column jeu">
{% for game in mod.games_ordered %}<p>{{ game }}</p>{% endfor %}
</div>
{% if mod.authors|length <= 1 %}
<div class="column team">
{% for user in mod.authors %}<p>{{ user }}</p>{% endfor %}
</div>
{% else %}
<details class="column team">
<summary>{{ _(trans["team"]) }}</summary>
<div class="content">{% for user in mod.authors %}<p>{{ user }}</p>{% endfor %}</div>
</details>
{% endif %}
{% if mod.team|length <= 1 %}
<div class="column team translator">
{% for user in mod.team %}<p>{{ user }}</p>{% endfor %}
</div>
{% else %}
<details class="column team translator">
<summary>{{ _(trans["team"]) }}</summary>
<div class="content">{% for user in mod.team %}<p>{{ user }}</p>{% endfor %}</div>
</details>
{% endif %}
<div class="column url">
{% for url in mod.get_urls() %}
<a href="{{ url.url }}" target="{% if url.is_external %}_blank{% else %}_self{% endif %}">
{% if url.image %}
{% set img = url.image %}
<img src="{{ static }}{{ img.src }}" alt="{{ img.alt|default('Lien vers le mod',true) }}" width="{{ img.width }}" height="{{ img.height }}" title="{{ img.title }}" lazy="loading">
{% else %}
{{ _(trans["link"]) }}
{% endif %}
</a>
{% endfor %}
</div>
<div class="column desc">
<div class="content">
{{ mod.get_description(mod_id_to_name=mod_id_to_name)|safe }}
{% set notes = mod.get_notes(mod_id_to_name=mod_id_to_name) %}
{% if notes|length > 0 %}
<br/><br/>{% for note in notes %}{{ note|safe }}{% if not loop.last %}<br/>{% endif %}{% endfor %}
{% endif %}
</div>
</div>
</div>
{% include "mod.html" %}
{% endfor %}
</div>
</details>
44 changes: 44 additions & 0 deletions docs/templates/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<div id="header">
<h1><a href="{{ home_page }}">{{ _(trans["mod_list"]) }}</a></h1>
<div class="language-picker">
{% for language_url, flag in language_flags.items() %}
<a class="button" href="{{ home_page }}{{ language_url }}/" title="{{ language_url }}">{{ flag }}</a>
{% endfor %}
</div>
<hr>
<div class="nav-2">
<img class="main"
src="{{ static }}img/logo_lcc.avif"
title="La Couronne de Cuivre"
alt="La Couronne de Cuivre"
height="215"
width="885" />
<div class="credits">
<div>
<p>{{ _(trans["version"]) }}</p>
<p id="version"><strong>3.9.0</strong></p>
</div>
<div>
<p>{{ _(trans["mod_nb"]) }}</p>
<p><strong>{{ mod_length }}</strong></p>
</div>
<div>
<p>{{ _(trans["author"]) }}</p>
<p><a href="https://www.baldursgateworld.fr/memberlist.php?mode=viewprofile&u=12382"><strong>Freddy_Gwendo</strong></a> (aka Gwendolyne)</p>
</div>
<div>
<p>{{ _(trans["maintainer"]) }}</p>
<p><a href="https://www.baldursgateworld.fr/memberlist.php?mode=viewprofile&u=12905"><strong>rivvers</strong></a></p>
</div>
<p>
<a href="https://www.baldursgateworld.fr/viewtopic.php?t=34779">{{ _(trans["discussion"]) }} CC</a> • <a href="https://www.gibberlings3.net/forums/topic/40557-the-copper-coronet-mods-list/">{{ _(trans["discussion"]) }} G3</a> • <a href="https://github.com/RiwsPy/lcc-docs">GitHub</a>
</p>
</div>
</div>
</div>
<div class="breadcrumb">
<a href="{{ home_page }}">👉 {{ _(trans["home"]) }}</a>
{% if language %}
<a href="{{ home_page }}/{{ language }}/">{{ language }}</a>
{% endif %}
</div>
Loading
Loading