ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
954
|
Sun Feb 20 15:30:04 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug fix | Linux | 2.5.7 | Re: Problem with 'Show Attributes' option |
> There is a problem with the 'Show Attributes' option
> causing the 'Format ...' options to be ignored.
>
> See attachment for patch.
Thanks a lot. I applied your patch and committed the changes to CVS. |
953
|
Sat Feb 19 18:39:52 2005 |
| Heiko Scheit | h.scheit@mpi-hd.mpg.de | Bug fix | Linux | 2.5.7 | Problem with 'Show Attributes' option |
There is a problem with the 'Show Attributes' option
causing the 'Format ...' options to be ignored.
See attachment for patch. |
Attachment 1: patch
|
--- elogd.c_20050219 Sat Feb 19 18:15:09 2005
+++ elogd.c Sat Feb 19 18:25:55 2005
@@ -8169,7 +8169,7 @@
if (format_flags[index] & AFF_SAME_LINE)
/* if attribute on same line, do nothing */
rsprintf("");
- else if (index < n_attr - 1 && (format_flags[index + 1] & AFF_SAME_LINE)) {
+ else if (aindex < n_disp_attr - 1 && (format_flags[attr_index[aindex + 1]] & AFF_SAME_LINE)) {
/* if next attribute on same line, start a new subtable */
rsprintf("<tr><td colspan=2><table width=\"100%%\" cellpadding=0 cellspacing=0><tr>");
subtable = 1;
@@ -8469,7 +8469,7 @@
}
}
- if (index < n_attr - 1 && (format_flags[index + 1] & AFF_SAME_LINE) == 0) {
+ if (aindex < n_disp_attr - 1 && (format_flags[attr_index[aindex + 1]] & AFF_SAME_LINE) == 0) {
/* if next attribute not on same line, close row or subtable */
if (subtable) {
rsprintf("</table></td></tr>\n");
@@ -8479,7 +8479,7 @@
}
/* if last attribute, close row or subtable */
- if (index == n_attr - 1) {
+ if (aindex == n_disp_attr - 1) {
if (subtable) {
rsprintf("</table></td></tr>\n");
subtable = 0;
|
952
|
Fri Feb 18 08:47:20 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | | Linux | | Re: How to import previous emails to elog ? |
Have a look at http://midas.psi.ch/elogs/Contributions/10 |
951
|
Fri Feb 18 08:43:42 2005 |
| Anand Sengupta | anandss@iucaa.ernet.in | | Linux | | How to import previous emails to elog ? |
Hi
We have setup a elog server and would like to import a bunch of emails as
elog entries. Is there some way we can do this ? Since there are hundreds of
emails, it is not possible to post them individually as new elog entries.
Many thanks,
Anand. |
950
|
Wed Feb 16 09:02:09 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | 2.5.6 | Re: images attached shown as inline |
As I wrote you by mail, I implemented your idea in the following way. As you
say, it's only working on Gecko based systems. I did not implement additional
configuration parameters, but made it through the CSS file:
- adding a new CSS style "attachmentframe" around all attachments
- adding class "attachmentframe" to the 'default.css' like:
.attachmentframe {
border:1px solid grey;
border-top:1px solid lightgrey;
border-left:1px solid lightgrey;
background-color:white;
padding:5px;
}
.attachmentframe img {
max-width:100%;
}
The latter restricts the image size to 100%, which is the width of the
browser window. I like it that, but of course you can write 200px or
anything else. Please find the modified elogd.c and default.css under CVS. |
949
|
Wed Feb 16 08:58:47 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Request | Linux | 2.5.6 | Re: images attached shown as inline |
> > the following should do the job:
> >
> > <div style="width: 200px">
> > <img src="IMG_3133.jpg" style="width: 100%" />
> > </div>
> >
> > the configurable parameter should be with obviously :-)
>
> Unfortunately not. Please find attached the screen dump from such a try, together with the HTML code.
> As you can see, the little elog icon is stretched to the same width as the upper (large) picture.
you are right ;-( I used a different code in my test and sent you and old test code, *but* also the last
one does not works on every browser ... the following code would do the job, but it seems to work only
in gecko-based browsers such as mozilla, firefox and safari ...
<div style="width: 200px">
<img src="IMG_3133.jpg" style="max-width: 200" />
</div>
other browsers do not scale the vertical dimention :-( |
948
|
Wed Feb 16 08:48:52 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Bug fix | All | 2.5.6 cvs | Re: [patch]: fixed wrong extention check |
> > current version uses strstr() to check if the file has the expected ascii
> > text extension ... this is buggy becouse this way a file named
> > ".txt_hidden_file" or "foo.config.dat" are both seen as .txt files.
>
> I added your routine chkext() to the code, but actually use it differently. I
> display now ASCII files not by their extension, but the code checks for each file
> to contain non-printable characters. If it contains all printable letters, and does
> not have the extension PDF, PS or EPS, it's shown inline.
I totally agree with you choice :-) |
947
|
Wed Feb 16 08:45:54 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Bug report | Linux | 2.5.6 | Re: preselected values and conditional options |
> > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> > Attributes = Author, Type, Category, Subject
> > Required Attributes = Author, Type, Subject
> > Options Type = Deposition{1}, Arc Studies{1}, Conditioning{1}, Vacuum{2},
> > Other{3}
> > Preset Type = Deposition
>
> The "Preset xxx" option actually never was ment to be used with conditional
> attributes. I added that functionality in rev. 1.553. Please give it a try.
it works fine !!! thank you so much (btw, using Preset xxx{1} it doesn't
works.. but it should be the correct beaviour) |