Skip to content

Commit

Permalink
Merge branch 'master' of github.com:victorcoder/dcron
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Aug 3, 2015
2 parents fed270c + 23efb2c commit ace9263
Show file tree
Hide file tree
Showing 35 changed files with 3,804 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.etcd
site/
docs/scss/Gemfile.lock
docs/scss/.sass-cache
140 changes: 140 additions & 0 deletions dcron_theme/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if page_description %}<meta name="description" content="{{ page_description }}">{% endif %}
{% if site_author %}<meta name="author" content="{{ site_author }}">{% endif %}
{% if canonical_url %}<link rel="canonical" href="{{ canonical_url }}">{% endif %}
{% if favicon %}<link rel="shortcut icon" href="{{ favicon }}">
{% else %}<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}

<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>

<link href="{{ base_url }}/css/bootstrap-custom.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/font-awesome-4.0.3.css" rel="stylesheet">
<link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">
{%- endfor %}

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

{% if google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
ga('send', 'pageview');
</script>
{% endif %}
</head>

<body class="{% if current_page.abs_url == '/' %}page-home{% endif %} {% if current_page.abs_url != '/' %}with-toc{% endif %}">

{% include "nav.html" %}

{% if current_page.abs_url == '/' %}

<div id="jumbotron-mask">
<div id="jumbotron">
<div class="container">
<div class="text-wrapper">
<h2>Job scheduling made easy, distributed and highly-available</h2>
<a href="#" class="button">Community</a> <a href="#" class="button button-light">Download</a>
</div>
<div class="dcron-logo"><img src="../img/dcron-jumbo-logo-white.png"></div>
</div>
</div>
</div>

<blockquote>
<div class="container">
<p>Dcron is a system service that runs scheduled tasks at given intervals or times, just like the cron unix service distributed in several machines in a cluster. If a machine fails (the leader), the next one will take the responsability to keep running the scheduled tasks. Without human intervention. Dcron is Open Source and freely available.</p>
</div>
</blockquote>

{% endif %}

{% if current_page.abs_url != '/' %}

<div class="container">
<div class="col-md-3">{% include "toc.html" %}</div>
<div class="col-md-9" role="main">{% include "content.html" %}</div>
</div>

{% else %}

<div class="home-wrapper">
<div class="container">
<div class="class-md-12 main-content">
{% include "content.html" %}
</div>
</div>
</div>

{% endif %}

{% if current_page.abs_url == '/' %}

<div id="use-cases-mask">
<div class="use-cases container">
<h2>Example use cases</h2>

<div class="case-container">
<div class="case">
<img src="img/email-delivery.png"/>
<span>Email delivery</span>
</div>
<div class="case">
<img src="img/payroll-generation.png"/>
<span>Payroll generation</span>
</div>
<div class="case">
<img src="img/book-keeping.png"/>
<span>Bookkeeping</span>
</div>
<div class="case">
<img src="img/data-consolidation.png"/>
<span>Data consolidation for BI</span>
</div>
<div class="case">
<img src="img/recurring-invoicing.png"/>
<span>Recurring invoicing</span>
</div>
<div class="case">
<img src="img/data-transfer.png"/>
<span>Data transfer</span>
</div>
</div>
</div>
</div>
{% endif %}

<footer class="col-md-12" role="contentinfo">
<hr>
<div class="footer-logo">
<img src="/img/dcron-logo-blue.png"/>
</div>
{% if copyright %}
<p>{{ copyright }}</p>
{% endif %}
<p>Web design by <a href="http://www.collagestudio.es/">Collage Studio</a>.</p>
</footer>

<script src="{{ base_url }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
<script src="{{ base_url }}/js/highlight.pack.js"></script>
<script src="{{ base_url }}/js/base.js"></script>
{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
{%- endfor %}
</body>
</html>
77 changes: 77 additions & 0 deletions dcron_theme/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">

<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<!-- Main title -->
<div class="brand">
<a class="logo" href="{{ homepage_url }}">Dcron</a>
</div>
</div>

<!-- Expanded navigation -->
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="main-links nav navbar-nav">
{% for nav_item in nav %}
{% if nav_item.children %}
<li class="dropdown{% if nav_item.active %} active{% endif %}">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
<ul class="dropdown-menu">
{% for nav_item in nav_item.children %}
<li {% if nav_item.active %}class="active"{% endif %}>
<a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li {% if nav_item.active %}class="active"{% endif %}>
<a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>

<!-- Search, Navigation and Repo links -->
<ul class="nav navbar-nav navbar-right">

{% if current_page.abs_url != '/' %}

<li {% if not previous_page %}class="disabled"{% endif %}>
<a rel="next" {% if previous_page %}href="{{ previous_page.url }}"{% endif %}>
<i class="fa fa-arrow-left"></i> Previous
</a>
</li>
<li {% if not next_page %}class="disabled"{% endif %}>
<a rel="prev" {% if next_page %}href="{{ next_page.url }}"{% endif %}>
Next <i class="fa fa-arrow-right"></i>
</a>
</li>

{% endif %}

{% if repo_url %}
<li>
<a href="{{ repo_url }}">
{% if repo_name == 'GitHub' %}
<i class="fa fa-github"></i>
{% elif repo_name == 'Bitbucket' %}
<i class="fa fa-bitbucket"></i>
{% endif %}
{{ repo_name }}
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
Loading

0 comments on commit ace9263

Please sign in to comment.