Skip to content

Commit

Permalink
ditch the Twitter Bootstrap app
Browse files Browse the repository at this point in the history
The tags were cute, but I don't think we were getting much out of it,
and I feel like the flexibility of owning our HTML may be useful for
reasons yet to be disclosed.
  • Loading branch information
zackmdavis committed Mar 11, 2015
1 parent 6848565 commit cd28319
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bleach==1.4
git+https://github.com/django/[email protected]#egg=Django
django-bootstrap3==4.11.0
django-debug-toolbar==1.3
Markdown==2.4.1
jasmine==2.0.1
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bleach==1.4
git+https://github.com/django/[email protected]#egg=Django
django-bootstrap3==4.11.0
Markdown==2.4.1
dj-database-url==0.3.0
dj-static==0.0.6
Expand Down
1 change: 0 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap3',
'core',
)

Expand Down
10 changes: 7 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{% load i18n %}
{% load bootstrap3 %}

<!DOCTYPE html>
<html lang="en">
<head>
{% bootstrap_css %}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" media="screen" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Italianno'
rel='stylesheet' type='text/css'>
<link href="/static/finetooth.css" rel="stylesheet">
Expand Down Expand Up @@ -42,7 +41,12 @@
</div>
</div>

{% bootstrap_messages %}
{% for message in messages %}
<div class="alert{% if message.tags %} alert-{% if message.tags == 'error' %}danger{% else %}{{ message.tags }}{% endif %}{% endif %} alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&#215;</button>
{{ message|safe }}
</div>
{% endfor %}

<div class="container">
<div class="col-md-9">
Expand Down
5 changes: 2 additions & 3 deletions templates/includes/comment.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load bootstrap3 %}

<div class="comment" id="comment-{{ comment.pk }}">
<div class="byline">
Expand All @@ -12,11 +11,11 @@
<p>
<a href="javascript:void(0);" class="comment-tool reply-form-link"
data-comment-pk="{{ comment.pk }}" data-post-pk="{{ post.pk }}">
{% bootstrap_icon 'pencil' %} Reply
<i class="glyphicon glyphicon-pencil"></i> Reply
</a>
&nbsp;&nbsp;
<a href="#comment-{{ comment.pk }}" class="comment-tool">
{% bootstrap_icon 'pushpin' %} Permalink
<i class="glyphicon glyphicon-pushpin"></i> Permalink
</a>
</p>
<div class="reply-form-holder" data-parent-pk="{{ comment.pk }}"></div>
Expand Down
11 changes: 6 additions & 5 deletions templates/includes/post.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{% load bootstrap3 %}

<h3><a href="{% url 'show_post' post.year post.month post.slug %}">{{ post.title }}</a></h3>
<div>by <a class="username" href="{% url 'show_profile' post.author %}">{{ post.author }}</a></div>
<span class="score" data-pk="{{ post.slug }}" data-score="{{ post.score }}">
<p>
{% bootstrap_icon 'time' %} <em>{{ post.published_at }} </em>
<i class="glyphicon glyphicon-time"></i>
<em>{{ post.published_at }} </em>
<strong>score: {{ post.score }}</strong>
</p>
</span>
Expand All @@ -17,12 +16,14 @@ <h3><a href="{% url 'show_post' post.year post.month post.slug %}">{{ post.title
<a class="btn btn-primary upvote"
data-pk="{{ post.pk }}" data-kind="post"
href="javascript:void(0)">
{% bootstrap_icon 'thumbs-up' %} upvote
<i class="glyphicon glyphicon-thumbs-up"></i>
upvote
</a>
<a class="btn btn-danger downvote"
data-pk="{{ post.pk }}" data-kind="post"
href="javascript:void(0)">
{% bootstrap_icon 'thumbs-down' %} downvote
<i class="glyphicon glyphicon-thumbs-down""></i>
downvote
</a>
<div class="label label-default vote-status" data-pk="{{ post.pk }}" data-kind="post">
...
Expand Down
4 changes: 1 addition & 3 deletions templates/post.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends "base.html" %}
{% load i18n %}

{% load bootstrap3 %}

{% block valuation %}
<link href="/valuation_{{ low_score }}-{{ low_color }}_{{ high_score }}-{{ high_color }}.css" rel="stylesheet">
{% endblock %}
Expand All @@ -14,7 +12,7 @@
<br><br>

<div id="tags">
{% bootstrap_icon 'tag' %}
<i class="glyphicon glyphicon-tag"></i>
{% for tag in post.tag_set.all %}
<span class="tag">
<a href="{% url 'tagged' tag.label %}">
Expand Down

0 comments on commit cd28319

Please sign in to comment.