On 03/31/2012 02:48 AM, BikeMike wrote:
> On Mar 30, 11:14 pm, hjebbers<hjebb...@gmail.com> wrote:
>> Let me know if you have changes that should be included in this new
>> versions.
> Hi henk-jan,
> I think most of my changes you have already mentioned and are in the
> issues list.
>
> There are a few others not in current source or on the issues list:
> 1. Alternate botslogo configurable in bots.ini
I agree with the feature. It is important to be able to better distinguish different environments in bots-monitor.
but.....I think this cna be done easier.
now one has to edit the picture. Editing pictures is not very nice, this should be easier.
an option would be to include an (optional?) marker to the right of the bots-logo.
this can be text, maybe it is possible to include html?
> 2. Run menu requires superuser (not sure if I added this or you have
> removed it, maybe this is just relevant to me)
> 3. webserver prints start info to console, used for testing
you are right, I will do that.
henk-jan
> Kind Regards,
> Mike
>
On 03/31/2012 02:48 AM, BikeMike wrote:
> 3. webserver prints start info to console, used for testing
I just checked this change in.
henk-jan
Instead, botslogo is separated into it's own html template and included
in base.html. You can take a copy of botslogo.html to another file,
customise it to your needs, and specify it's name in bots.ini.
botslogo_html filter gets the name to include.
With a few tweaks in the html it works as a standalone file for testing
in a browser (see comments in botslogo-test.html)
bots.ini
----------
[webserver]
# Replace botslogo.html with a customised one
botslogo=bots/botslogo-test.html
----------
Kind Regards,
Mike
trying to find out an 'easy' option: display a text from bots.ini on the right side of the bots logo.
henk-jan
bots.ini
----------
[webserver]
botslogo_text=Mike's Test System
----------
henk-jan
looks like this is quite tricky, as it is dependent upon the resulotuin of the screen (on my screen it looks quite different, the text is not as nice displayed as on your screenshot).
henk-jan
attached is a screenshot where the environment is in text.
this can be changed in bots.ini.
other things, like changes in the logo are not environment related (but per installation).
I did this in (larger) black letters, to have the layout not to flashy.
hen-jan
On 04/03/2012 02:04 PM, BikeMike wrote:
> previous one doesn't work.
hi mike,
I checked this in
kind regards,
henk-jan
tested bots in django 1.1.4
everything seems to work, but the botslogo is not displayed :-((
all changes are in the repository
(rename directory template1.1 to template,
rename media/js1.1 to media/js)
I do not think this is related to javascript issues: javascript is not used.
any idea?
henk-jan
On 04/05/2012 03:35 AM, BikeMike wrote:
if I have in base.html:
{% include "bots/botslogo.html" %}
instead of
{% include "bots/botslogo.html"|botslogo_html %}
it does work.
so it might be filter-related?
henk-jan
I have now:
{% if not is_popup %}
{% with "bots/botslogo.html"|botslogo_html as logo %}
{% include logo %}
{% endwith %}
<div id="environment">
<div>{{ ""|environment_text }}</div>
</div>
{% include "bots/menu.html" %}
{% endif %}
but that does not work here :-((
in bots.ini I have:
botslogo =
henk-jan
henk-jan
It allows you also pass the path to a grammar instead of editype and
messagetype; I use this to run a grammarcheck directly as a tool in my
text editor while creating grammars. Although the path is passed, it
must still be in the "correct" location. The code just splits up the
path to get editype and messagetype.
(I renamed it, but this could replace grammarcheck.py, it is backwards
compatible)
Kind Regards,
Mike