You are not logged in.

#1 2018-09-10 15:46:37

regid
Member
Registered: 2016-06-06
Posts: 83

What pseudo CSS, or other, code can improve in this case?

I assume the following patch solves the requirement presented by red pseudo code near the bottom of the image.

--- pkg_comment_box.php	2018-09-10 10:54:03.579661843 +0000
+++ pkg_comment_box_modified.php	2018-09-10 10:57:46.059850406 +0000
@@ -1,4 +1,4 @@
 <div id="generic-form" class="box">
-	<h2><?= (isset($comment_id)) ? __('Edit comment for: %s', htmlspecialchars($pkgbase_name)) : __("Add Comment"); ?></h2>
+	<h2><?= (isset($comment_id)) ? __('Edit comment for: %s', htmlspecialchars($pkgbase_name)) : __("Add Comment"); ?> <a href="https://wiki.archlinux.org/index.php/Arch_User_Repository#Comment_syntax">__("help for comment syntax")</a></h2>
 	<?php include 'pkg_comment_form.php' ?>
 </div>

Do post your comments on the correctness of my assumption, if you have one.
Even if you don't want to comment about the correctness of my assumption, am I right the outcome doesn't stand with the customary look expected in these cases? Can you suggest what CSS pseudo code, or other methods, can make it look similar to this, 2nd, image? In that 2nd image I presented only the relevant part of the 1st image. I also shorten the underline of the header, and made the URL font smaller, and with the same color of some of the other text of the 1st image. In case you wonder, the context of the patch above is archlinux's aurweb:pkg_comment_box.php.

Last edited by regid (2018-09-10 16:03:40)

Offline

#2 2018-09-11 10:44:36

Awebb
Member
Registered: 2010-05-06
Posts: 5,206

Re: What pseudo CSS, or other, code can improve in this case?

When I click on your link, it shows me a black panda complaining about butt stuff of some kind. I scrolled up and down, are you trying to patch aurweb to display a link above the text box?

Offline

#3 2018-09-11 11:54:47

regid
Member
Registered: 2016-06-06
Posts: 83

Re: What pseudo CSS, or other, code can improve in this case?

I am trying to patch the aurweb to display a link above the text box, to the right of the comment title. One might argue if the link should be shown when the text box is not present as well. I tried to further show my intention at this image. Which is shorter, hopefully more to the point, than the taller image. Can you see the images? Do they manage to clarify my intention?

Last edited by regid (2018-09-11 18:00:49)

Offline

#4 2018-09-11 16:33:14

Awebb
Member
Registered: 2010-05-06
Posts: 5,206

Re: What pseudo CSS, or other, code can improve in this case?

Yes, it's very clear and the images display correctly. It was imgur's mobile page, that showed me a panda instead.

Offline

#5 2018-09-12 15:34:39

regid
Member
Registered: 2016-06-06
Posts: 83

Re: What pseudo CSS, or other, code can improve in this case?

I have filed a feature request.

Last edited by regid (2018-09-12 15:35:48)

Offline

#6 2018-09-30 14:44:26

regid
Member
Registered: 2016-06-06
Posts: 83

Re: What pseudo CSS, or other, code can improve in this case?

On 2018-09-30 03:00, at https://aur.archlinux.org/packages/lprng,

eschwartz wrote:

The AUR supports markdown so you can just use ``` to delimit code blocks.

I am not familiar with markdown. As you might guess from this thread, I am using https://wiki.archlinux.org/index.php/Ar … ent_syntax for references to the documentation for the aurweb comment syntax. I didn't see the option to delimit code blocks with ```. I still think whatever problematic documentation that exists is better than no reference to the documentation at all.

Offline

#7 2018-09-30 15:47:33

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,543

Re: What pseudo CSS, or other, code can improve in this case?

It's described in the python-markdown documentation, and the fenced code blocks are part of the Extensions API: https://python-markdown.github.io/extensions/


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB