Skip to content

Commit

Permalink
Some corrections and title improvements. Added copyrights and link to…
Browse files Browse the repository at this point in the history
… Github.
  • Loading branch information
RChaintreuil committed Apr 7, 2012
1 parent b837ddf commit 0da6ff5
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ dev
---

- Pyramid 1.3 compatibility
- Some design improvements
- Now public !

1.9
---

- Correction de la css pour le hl. Ça bump comme c'est pas permit !
- Correction de la css pour le hl. Ça bump comme c'est pas permi !

1.8
---

- Pleins d'améliorations avec bootstrap. Désolé pour le bump
- Plein d'améliorations avec bootstrap. Désolé pour le bump.
- Liste des chans
- Des jolis boutons
- Des jolies icones !
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RezoIrcLogs

It's designed to read log files that look more or less like irssi log files, and that are organized in any hierarchy of subdirs. The log files have names that look like ``#chan_name.20101209.log``

It's based on pyramid, and can be used like any other pyramid app. Just chan the root value in the config file to point to the root of your log files.
It's based on pyramid, and can be used like any other pyramid app. Just change the root value in the config file to point to the root of your log files.

I developped it to scratch my own itch, so it may need some tweaking to suits your needs. The code is (hopefully) clean and well-tested, but if you need anything, fell free to contact me.

Expand Down
8 changes: 8 additions & 0 deletions rezoirclogs/static/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3330,6 +3330,10 @@ a.thumbnail:hover {
visibility: hidden;
}

/*
* Ajouté par Rémi Chaintreuil <[email protected]>
*/

#content {
margin: 15px 5px 15px 5px;
padding : 10px;
Expand All @@ -3341,4 +3345,8 @@ a.thumbnail:hover {
-webkit-box-shadow: 0 10px 6px -6px #777;
-moz-box-shadow: 0 10px 6px -6px #777;
box-shadow: 0 10px 6px -6px #777;
}

footer {
text-align: center;
}
3 changes: 2 additions & 1 deletion rezoirclogs/templates/base.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
src="{{ request.static_url('deform:static/' + js) }}"></script>
{%- endfor %}
{%- endif %}
<title>{% block title %}{% endblock %} - Logs IRC</title>
<title>IRC Logs{% block title %}{% endblock %}</title>
{% endblock %}
</head>
<body>
<div class="container">
<div id="content">{% block content %}{% endblock %}</div>
<footer>
<p>Copyright (c) 2012 Georges Dubus - <a href="https://github.com/madjar/rezoirclogs/" alt="Project on Github">Project on Github</a></p>
{% block footer %}
{% endblock %}
</footer>
Expand Down
2 changes: 1 addition & 1 deletion rezoirclogs/templates/chan.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.jinja2" %}

{% block title %}{{ chan.__name__ }}{% endblock %}
{% block title %} - {{ chan.__name__ }}{% endblock %}

{% block content %}
<h1>{{ chan.__name__ }}</h1>
Expand Down
10 changes: 8 additions & 2 deletions rezoirclogs/templates/directory.jinja2
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{% extends "base.jinja2" %}

{% block title %}Directory : {{ dir.__name__ }}{% endblock %}
{% block title %}
{% if dir.__name__ != '' %}
- {{ dir.__name__ }}
{% else %}
- Accueil
{% endif %}
{% endblock %}

{% block content %}
{% if dir.__name__ != '' %}
<h1>{{ dir.__name__ }}</h1>
{% else %}
<h1>Logs IRC</h1>
<h1>IRC Logs</h1>
{% endif %}

<div>
Expand Down
2 changes: 1 addition & 1 deletion rezoirclogs/templates/logfile.jinja2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.jinja2" %}
{% from 'macros.jinja2' import display_line %}

{% block title %}{{ context.__parent__.__name__ }} {{ context.__name__ }}{% endblock %}
{% block title %} - {{ context.__parent__.__name__ }} - {{ context.__name__ }}{% endblock %}

{% block content %}
<p><a class="btn" href="{{ context.__parent__ | model_url }}">..</a></p>
Expand Down
4 changes: 3 additions & 1 deletion rezoirclogs/templates/search.jinja2
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{% extends "base.jinja2" %}
{% from 'macros.jinja2' import display_line %}

{% block title %}Search results for {{ query }}{% endblock %}
{% block title %}
- Search results for {{ query }}
{% endblock %}

{% block content %}
{% set name = context.__name__ or '/' %}
Expand Down

0 comments on commit 0da6ff5

Please sign in to comment.