mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +00:00 
			
		
		
		
	use link everywhere
This commit is contained in:
		@@ -5,10 +5,10 @@
 | 
				
			|||||||
      <div class="lg:w-2/3 flex flex-col sm:flex-row sm:items-center items-start mx-auto">
 | 
					      <div class="lg:w-2/3 flex flex-col sm:flex-row sm:items-center items-start mx-auto">
 | 
				
			||||||
        <h1 class="flex-grow sm:pr-16 text-2xl font-medium title-font cm-gray-1">{{ include.cta.text|default:include.text }}</h1>
 | 
					        <h1 class="flex-grow sm:pr-16 text-2xl font-medium title-font cm-gray-1">{{ include.cta.text|default:include.text }}</h1>
 | 
				
			||||||
        {% for item in include.cta.btn %}
 | 
					        {% for item in include.cta.btn %}
 | 
				
			||||||
        <a href="{{ item.link }}" class="flex-shrink-0 text-white bg-secondary border-0 py-2 px-8 focus:outline-none hover:bg-primary rounded text-lg mt-10 sm:mt-0">{{ item.text }}</a>
 | 
					        <a href="{% include link.html item=item.link %}" class="flex-shrink-0 text-white bg-secondary border-0 py-2 px-8 focus:outline-none hover:bg-primary rounded text-lg mt-10 sm:mt-0">{{ item.text }}</a>
 | 
				
			||||||
        {% endfor %}
 | 
					        {% endfor %}
 | 
				
			||||||
        {% if include.link %}
 | 
					        {% if include.link %}
 | 
				
			||||||
        <a href="{{ include.link }}" class="flex-shrink-0 text-white bg-secondary border-0 py-2 px-8 focus:outline-none hover:bg-primary rounded text-lg mt-10 sm:mt-0">{{ include.link_text }}</a>
 | 
					        <a href="{% include link.html item=include.link %}" class="flex-shrink-0 text-white bg-secondary border-0 py-2 px-8 focus:outline-none hover:bg-primary rounded text-lg mt-10 sm:mt-0">{{ include.link_text }}</a>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
  {% unless include.no_container %}
 | 
					  {% unless include.no_container %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@
 | 
				
			|||||||
          <div class="inline-flex items-center">
 | 
					          <div class="inline-flex items-center">
 | 
				
			||||||
            <h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-gray-1">{{ include.data.header.title }}</h1>
 | 
					            <h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-gray-1">{{ include.data.header.title }}</h1>
 | 
				
			||||||
            {% if include.link %}
 | 
					            {% if include.link %}
 | 
				
			||||||
            <a href="{{ include.link }}">{% include learn_more.html %}</a>
 | 
					            <a href="{% include link.html item=include.link %}">{% include learn_more.html %}</a>
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <div class="h-1 w-20 bg-secondary rounded"></div>
 | 
					          <div class="h-1 w-20 bg-secondary rounded"></div>
 | 
				
			||||||
@@ -23,7 +23,7 @@
 | 
				
			|||||||
            <p class="leading-relaxed text-base">{{ item.description }}
 | 
					            <p class="leading-relaxed text-base">{{ item.description }}
 | 
				
			||||||
              {% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
 | 
					              {% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
 | 
				
			||||||
            </p>
 | 
					            </p>
 | 
				
			||||||
            <a class="text-secondary inline-flex items-center" href="{{ item.link }}">Learn More {% include learn_more.html %}</a>
 | 
					            <a class="text-secondary inline-flex items-center" href="{% include link.html item=item.link %}">Learn More {% include learn_more.html %}</a>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {% endfor %}
 | 
					      {% endfor %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@
 | 
				
			|||||||
          {% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
 | 
					          {% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
 | 
				
			||||||
        </p>
 | 
					        </p>
 | 
				
			||||||
        {% if item.link %}
 | 
					        {% if item.link %}
 | 
				
			||||||
        <a class="text-secondary inline-flex items-center" href="{{ item.link }}">Learn More {% include learn_more.html %}</a>
 | 
					        <a class="text-secondary inline-flex items-center" href="{% include link.html item=item.link %}">Learn More {% include learn_more.html %}</a>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      {% endfor %}
 | 
					      {% endfor %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,8 @@
 | 
				
			|||||||
    {{ site[include.item.site] }}
 | 
					    {{ site[include.item.site] }}
 | 
				
			||||||
{% elsif include.item.internal %}
 | 
					{% elsif include.item.internal %}
 | 
				
			||||||
    {{ include.item.internal | relativurl }}
 | 
					    {{ include.item.internal | relativurl }}
 | 
				
			||||||
{% else %}
 | 
					{% elsif include.item.link %}
 | 
				
			||||||
    {{ include.item.link }}
 | 
					    {{ include.item.link }}
 | 
				
			||||||
 | 
					{% else %}
 | 
				
			||||||
 | 
					    {{ include.item }}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user