commit 691a3152
Add images as a submodule
Changed files
| A | .gitmodules |
| M | static_content/css/oastat.css before |
| A | static_content/images |
| M | templates/game.tpl before |
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..7b4f6bb
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "static_content/images"]
+ path = static_content/images
+ url = https://github.com/sago007/oa_images.git
diff --git a/static_content/css/oastat.css b/static_content/css/oastat.css
index 613628f..d2d6aa4 100644
--- a/static_content/css/oastat.css
+++ b/static_content/css/oastat.css
@@ -61,3 +61,8 @@ tr:nth-child(even) {background: #edebd7}
.update {
font-size: 80%;
}
+
+.levelshot {
+ padding: 10px;
+ text-align: center;
+}
\ No newline at end of file
diff --git a/static_content/images b/static_content/images
new file mode 160000
index 0000000..b0d9b11
--- /dev/null
+++ b/static_content/images
@@ -0,0 +1 @@
+Subproject commit b0d9b11e8c88ea46eb43ad518cf97f4671a665e7
diff --git a/templates/game.tpl b/templates/game.tpl
index a1bb020..15faf68 100644
--- a/templates/game.tpl
+++ b/templates/game.tpl
@@ -38,6 +38,9 @@
<div class="main-section">
<div class="intro">OpenArena Stats - Game {{GAME_NUMBER}}</div>
{{GAME_MAP}} at {{GAME_SERVERNAME}}
+ <div class="levelshot">
+ <img src="../static/images/oa640x400/{{GAME_MAP}}.jpg" alt="{{GAME_MAP}}">
+ </div>
<table>
<tr>
<th>Player</th>