mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Added static files directory
- Improved display of part image
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
body {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table tr:nth-child(even) {
|
||||
background-color: #eee;
|
||||
}
|
||||
table tr:nth-child(odd) {
|
||||
background-color: #fff;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 98 KiB |
@ -10,7 +10,7 @@
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="{% static 'css/part.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
|
||||
|
||||
<title>
|
||||
{% block title %}
|
||||
@ -20,11 +20,14 @@ InvenTree
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% include "navbar.html" %}
|
||||
|
||||
<div class="inventree-content">
|
||||
{% block content %}
|
||||
<!-- Each view fills in here.. -->
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
<div class="container">
|
||||
<div class='navigation'>
|
||||
<a href="/part/list/">Parts</a> >
|
||||
{% if category %}
|
||||
{% for path_item in category.parentpath %}
|
||||
|
@ -1,15 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include "part/cat_link.html" with category=part.category %}
|
||||
|
||||
<div class="media">
|
||||
<img class="mr-3"
|
||||
<img class="mr-3 part-thumb"
|
||||
{% if part.image %}
|
||||
src="{{ part.image.url }}"
|
||||
{% else %}
|
||||
src="/media/part_images/missing.png"
|
||||
src="{% static 'img/blank_image.png' %}"
|
||||
{% endif %}/>
|
||||
<div class="media-body">
|
||||
<h5>{{ part.name }}</h5>
|
||||
|
Reference in New Issue
Block a user