Skip to content

Instantly share code, notes, and snippets.

@Im0rtality
Last active August 29, 2015 14:07
Show Gist options
  • Save Im0rtality/8e1ee1a99759981ebecd to your computer and use it in GitHub Desktop.
Save Im0rtality/8e1ee1a99759981ebecd to your computer and use it in GitHub Desktop.

Revisions

  1. Im0rtality revised this gist Oct 13, 2014. 4 changed files with 54 additions and 0 deletions.
    File renamed without changes.
    26 changes: 26 additions & 0 deletions 10-base.twig.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}{% endblock %}</title>

    {% block stylesheets %}{% stylesheets %}
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    {% endstylesheets %}{% block stylesheets %}

    </head>
    <body>
    <div class="container">

    {% block content %}{% endblock %}

    </div>

    {% block javascripts %}{% javascripts %}
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    {% endjavascripts %}{% endblock %}

    </body>
    </html>
    11 changes: 11 additions & 0 deletions 20-hello.twig.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    {% extends "::base.html.twig" %}

    {% block title %}Hello world page{% endblock %}

    {% block content %}
    <div class="row">
    <div class="col-xs-12">
    <h1>Hello world!</h1>
    </div>
    </div>
    {% endblock %}
    17 changes: 17 additions & 0 deletions 30-user.twig.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    {% extends "::base.html.twig" %}

    {% block title %}Users{% endblock %}

    {% block content %}
    <div class="row">
    {% for user in users %}
    <div class="col-xs-2">
    <img src="{{ user.image | make_full_url }}"
    alt="Avatar for {{ user.username }}"
    class="img-circle">

    <p>{{ user.name }} {{ user.lastname }}</p>
    </div>
    {% endfor %}
    </div>
    {% endblock %}
  2. Im0rtality created this gist Oct 13, 2014.
    28 changes: 28 additions & 0 deletions 00-twbs-base
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">

    </head>
    <body>

    <div class="container">
    <div class="row">
    <div class="col-xs-12">

    <h1>Hello, world!</h1>
    ...

    </div>
    </div>
    </div>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

    </body>
    </html>