Commit b4c18cb5 by benjaoming

Update to Bootstrap 2.1.0

parent b39f8f1d
"""A more liberal autolinker """
Code modified from:
https://github.com/r0wb0t/markdown-urlize
A more liberal autolinker
Inspired by Django's urlize function. Inspired by Django's urlize function.
...@@ -39,10 +43,10 @@ import markdown ...@@ -39,10 +43,10 @@ import markdown
# Global Vars # Global Vars
URLIZE_RE = '(%s)' % '|'.join([ URLIZE_RE = '(%s)' % '|'.join([
r'<(?:f|ht)tps?://[^>]*>', r'<(?:f|ht)tps?://[^>\'"]*>',
r'\b(?:f|ht)tps?://[^)<>\s]+[^.,)<>\s]', r'\b(?:f|ht)tps?://[^)<>\s\'"]+[^.,)<>\s\'"]',
r'\bwww\.[^)<>\s]+[^.,)<>\s]', r'\bwww\.[^)<>\s]+[^.,)<>\s\'"]',
r'[^(<\s"]+\.(?:com|net|org)\b', r'[^(<\s\'"]+\.(?:com|net|org)\b',
]) ])
class UrlizePattern(markdown.inlinepatterns.Pattern): class UrlizePattern(markdown.inlinepatterns.Pattern):
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
{% block wiki_contents %} {% block wiki_contents %}
<div class="tabbable tabs-top" style="margin-top: 20px;"> <div class="" style="margin-top: 20px;">
<ul class="nav nav-tabs"> <ul class="nav nav-pills" style="border-bottom: 1px solid #EEE;">
<li style="float: left"> <li class="pull-left">
<h1 style="margin-top: -10px;"> <h1 style="margin-top: -10px;">
{{ article.current_revision.title }} {{ article.current_revision.title }}
{% if urlpath and urlpath.parent %} {% if urlpath and urlpath.parent %}
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</li> </li>
{% include "wiki/includes/article_menu.html" %} {% include "wiki/includes/article_menu.html" %}
</ul> </ul>
<div class="tab-content"> <div>
{% block wiki_contents_tab %} {% block wiki_contents_tab %}
{% wiki_render article %} {% wiki_render article %}
{% endblock %} {% endblock %}
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
{% block wiki_body %} {% block wiki_body %}
{% block navbar %} {% block navbar %}
<div class="navbar navbar-fixed-top"> <div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<ul class="nav"> <ul class="nav">
{% include "wiki/plugins/notifications/menubaritem.html" %} {% include "wiki/plugins/notifications/menubaritem.html" %}
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle label label-inverse" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="icon-user"></span> <span class="icon-user"></span>
{{ user }} {{ user }}
<b class="caret"></b> <b class="caret"></b>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="accordion-heading"> <div class="accordion-heading">
<a class="accordion-toggle" href="#collapse_{{ plugin.slug }}" data-toggle="collapse"> <a class="accordion-toggle" href="#collapse_{{ plugin.slug }}" data-toggle="collapse">
<h2>{{ plugin.sidebar.headline }} <span class="{{ plugin.sidebar.icon_class }}"></span></h2> <h3 style="margin: 0;">{{ plugin.sidebar.headline }} <span class="{{ plugin.sidebar.icon_class }}"></span></h3>
</a> </a>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment