Parcourir la source

Added a welcome message for new installs

Jeremy Stretch il y a 8 ans
Parent
commit
97f7ac9edf
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      netbox/templates/home.html

+ 4 - 0
netbox/templates/home.html

@@ -151,6 +151,10 @@
                         {{ a.icon }} {{ a.message|safe }}<br />
                         <small class="text-muted">{{ a.user }} - {{ a.time|date:'SHORT_DATETIME_FORMAT' }}</small>
                     </div>
+                {% empty %}
+                    <div class="list-group-item">
+                        Welcome to NetBox! {% if perms.add_site %} <a href="{% url 'dcim:site_add' %}">Add a site</a> to get started.{% endif %}
+                    </div>
                 {% endfor %}
             </div>
         </div>