diff --git a/ram/portal/templates/bookshelf/book.html b/ram/portal/templates/bookshelf/book.html
index a67fd08..4e14488 100644
--- a/ram/portal/templates/bookshelf/book.html
+++ b/ram/portal/templates/bookshelf/book.html
@@ -216,22 +216,7 @@
diff --git a/ram/portal/templates/includes/documents.html b/ram/portal/templates/includes/documents.html
new file mode 100644
index 0000000..755e88f
--- /dev/null
+++ b/ram/portal/templates/includes/documents.html
@@ -0,0 +1,26 @@
+ {% if documents %}
+
+
+
+ | {{ header|default:"Documents" }} |
+
+
+
+ {% for d in documents.all %}
+
+ | {{ d.description }} |
+
+ {% if d.private %}
+
+ {% else %}
+
+ {% endif %}
+ {{ d.filename }}
+ |
+ {{ d.file.size | filesizeformat }} |
+
+ {% endfor %}
+
+
+ {% endif %}
+
diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html
index 6cb0eef..65e5654 100644
--- a/ram/portal/templates/rollingstock.html
+++ b/ram/portal/templates/rollingstock.html
@@ -403,42 +403,8 @@
- {% if documents %}
-
-
-
- | Documents |
-
-
-
- {% for d in documents.all %}
-
- | {{ d.description }} |
- {{ d.filename }} |
- {{ d.file.size | filesizeformat }} |
-
- {% endfor %}
-
-
- {% endif %}
- {% if decoder_documents %}
-
-
-
- | Decoder documents |
-
-
-
- {% for d in decoder_documents.all %}
-
- | {{ d.description }} |
- {{ d.filename }} |
- {{ d.file.size | filesizeformat }} |
-
- {% endfor %}
-
-
- {% endif %}
+ {% include "includes/documents.html" %}
+ {% include "includes/documents.html" with documents=decoder_documents header="Decoder documents" %}