Browse Source

add getting started page

Gesche 2 years ago
parent
commit
84fc9f9570
3 changed files with 34 additions and 0 deletions
  1. 1
    0
      accounts/templates/base_generic.html
  2. 31
    0
      accounts/templates/getting_started.html
  3. 2
    0
      accounts/urls.py

+ 1
- 0
accounts/templates/base_generic.html View File

@@ -39,6 +39,7 @@
39 39
           <li><a href="{% url 'accounts:index' %}">Home</a></li>
40 40
         {% if user.is_authenticated %}
41 41
           <li><a href="{% url 'accounts:characters' %}">My characters</a></li>
42
+          <li><a href="{% url 'accounts:getting_started' %}">Getting started</a></li>
42 43
         {% endif %}
43 44
         </ul>
44 45
      {% endblock %}

+ 31
- 0
accounts/templates/getting_started.html View File

@@ -0,0 +1,31 @@
1
+{% extends "base_generic.html" %}
2
+
3
+{% block content %}
4
+<h2 class="tibia-headline">Getting Started</h2>
5
+
6
+{% if user.is_authenticated %}
7
+    <p>
8
+        Beside this account you need a client to connect to the server.
9
+        Get the client source from here:
10
+        <a href="https://git.someserver.de/gesche/tibia-client">https://git.someserver.de/gesche/tibia-client</a>
11
+    </p>
12
+    <p>Follow the instructions there to compile, in general for linux systems with apt you need to install the requirements:</p>
13
+
14
+    sudo apt-get install -y build-essential cmake git-core <br>
15
+    sudo apt-get install -y libboost-all-dev libphysfs-dev libssl1.0-dev liblua5.1-0-dev <br>
16
+    sudo apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev <br>
17
+    <br>
18
+    <p>And build with:</p>
19
+
20
+    git clone https://git.someserver.de/gesche/tibia-client.git <br>
21
+    cd otclient && mkdir build && cd build && cmake -DUSE_STATIC_LIBS=OFF .. && make <br>
22
+    ./otclient <br>
23
+
24
+    <br>
25
+    <p>Finally, the client needs some files that contain the graphics and other static stuff for the server.
26
+        Ask Gesche how to obtain them.</p>
27
+{% else %}
28
+    Please log in to view this information.
29
+{% endif %}
30
+
31
+{% endblock %}

+ 2
- 0
accounts/urls.py View File

@@ -2,6 +2,7 @@ from django.urls import path
2 2
 
3 3
 
4 4
 from . import views
5
+from django.views.generic import TemplateView
5 6
 
6 7
 app_name = 'accounts'
7 8
 
@@ -10,4 +11,5 @@ urlpatterns = [
10 11
     path('register/', views.RegisterAccountView.as_view(), name='register'),
11 12
     path('characters/', views.PlayerView.as_view(), name='characters'),
12 13
     path('create_character/', views.CreateCharView.as_view(), name='create_char'),
14
+    path('getting_started/', TemplateView.as_view(template_name='getting_started.html'), name='getting_started'),
13 15
 ]

Loading…
Cancel
Save