style fixees

This commit is contained in:
Rushabh Mehta
2018-06-05 17:33:47 +05:30
parent 0852e74450
commit d34e39ec14
3 changed files with 17 additions and 21 deletions

View File

@@ -16,9 +16,9 @@ class ServiceProvider(WebsiteGenerator):
self.route = 'service-providers/' + self.scrub(self.name) self.route = 'service-providers/' + self.scrub(self.name)
def get_context(self, context): def get_context(self, context):
context.parents = [dict(label='All Service Providers in {0}'.format(self.country), context.parents = [dict(label='All Service Providers',
route='service-providers?country={0}'.format(self.country), route='service-providers',
title='All Service Providers in {0}'.format(self.country))] title='All Service Providers')]
if self.member: if self.member:
context.membership_type = frappe.get_value('Member', self.member, 'membership_type') context.membership_type = frappe.get_value('Member', self.member, 'membership_type')
if context.website and not context.website.startswith('http'): if context.website and not context.website.startswith('http'):

View File

@@ -6,12 +6,13 @@
<p class='lead'> <p class='lead'>
ERPNext is the modern, easy-to-use, 100% open source, business system used by more than three thousand enterprises worldwide. ERPNext is the modern, easy-to-use, 100% open source, business system used by more than three thousand enterprises worldwide.
</p> </p>
<a class="mt-4 btn btn-dark btn" href="/get-started.html">Get Started</a> <p><a class="mt-4 btn btn-dark btn" href="/get-started">Get Started with ERPNext</a></p>
<p><a class="text-muted" href="/stories">Read user stories</a></p>
</section> </section>
{% macro card(title, body, btnlink, badges) %} {% macro card(title, body, btnlink, badges) %}
<div class="col-sm"> <div class="col-sm mb-4">
<a href="{{ btnlink }}" class="card mb-4"> <a href="{{ btnlink }}" class="card h-100">
<div class="card-body"> <div class="card-body">
<h6>{{ title }}</h6> <h6>{{ title }}</h6>
<p class="card-text text-muted">{{ body }}</p> <p class="card-text text-muted">{{ body }}</p>
@@ -61,7 +62,7 @@
{{ card( {{ card(
"Projects", "Projects",
"Manage teams with multiple tasks, integrated with time tracking and budgeting.", "Manage teams with multiple tasks, track time and costs.",
"/docs/user/manual/en/projects", "/docs/user/manual/en/projects",
["All"] ["All"]
) }} ) }}
@@ -84,7 +85,7 @@
{{ card( {{ card(
"Healthcare", "Healthcare",
"Patient care with appointment scheduling, consultation and lab reports.", "Patient care with appointments, consultation and lab reports.",
"/docs/user/manual/en/healthcare", "/docs/user/manual/en/healthcare",
["Healthcare"] ["Healthcare"]
) }} ) }}
@@ -117,12 +118,6 @@
<hr class="featurette-divider"> <hr class="featurette-divider">
<section class="section-padding text-center"> <section class="section-padding text-center">
<p class='mt-5'>
<div class='blockquote'>"ERPNext and Frappe are monumental projects. We are happy contributors."
<footer class='blockquote-footer'>Kailash Nadh, CTO, Zerodha</footer>
</div>
</p>
<div class="mt-5 row text-center"> <div class="mt-5 row text-center">
<div class="col-xs-12 col-sm-6 col-md-3"> <div class="col-xs-12 col-sm-6 col-md-3">
<a class="secondary-link" target="_blank" href="https://www.capterra.com/p/164441/ERPNext/"> <a class="secondary-link" target="_blank" href="https://www.capterra.com/p/164441/ERPNext/">

View File

@@ -4,22 +4,23 @@
<div class='row'> <div class='row'>
{% for item in members %} {% for item in members %}
<div class='col-sm-4 mb-4'> <div class='col-sm-4 mb-4'>
<div class='card h-100'> <a href='{{ item.website_url or "#" }}' class='card h-100'>
{% if with_img %} {% if with_img %}
<img class="card-img-top greyscale" <div class='square-img'>
<img class="greyscale"
src="{{ item.image or "/assets/foundation/img/people/tux.png" }}" src="{{ item.image or "/assets/foundation/img/people/tux.png" }}"
alt="{{ item.title }}"> alt="{{ item.title }}">
</div>
{% endif %} {% endif %}
<div class="card-body"> <div class="card-body">
<h5> <h5>
{{ item.title }} {{ item.title }}
</h5> </h5>
<div>{{ item.country }}</div>
</div> </div>
<div class="card-footer"> <div class="card-footer">
<a href='{{ item.website_url or "#" }}' class='text-muted'>{{ item.website_url or "No Website" }}</a> <span class='text-muted small'>{{ item.country }}</span>
</div>
</div> </div>
</a>
</div> </div>
{% if loop.index is divisibleby 3 %} {% if loop.index is divisibleby 3 %}
</div><div class='row'> </div><div class='row'>