Opened 12 years ago
Last modified 5 years ago
#11130 new enhancement
Add an inlinelinkbutton class
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The buttons plugins add to ticket pages (Create, Delete, etc.) have a range of plugin-specific styles. It would be nice to unify them. Some plugins use a button, others use a link styled as a button.
The existing inline buttons style had a relative font size but depending on where the button was in the page, it could have a different appearance. This patch makes the text size consistent.
The new inlinelinkbutton
style makes links with that style look like inline buttons.
Attachments (3)
Change History (23)
by , 12 years ago
Attachment: | inline.diff added |
---|
follow-ups: 2 3 comment:1 by , 12 years ago
Cc: | added |
---|
Replying to Chris.Nelson@…:
The buttons plugins add to ticket pages (Create, Delete, etc.) have a range of plugin-specific styles.
Plugins provided with Trac, tracopt.ticket.clone
and tracopt.ticket.deleter
, add input
elements for the buttons, so it looks like the Clone and Delete buttons should be okay (and even for Trac < 0.12, the th:TicketDeletePlugin appears to add an input element within the div.inlinebuttons
). You mentioned Create, and I don't think I've seen a plugin that adds a Create button.
Which other plugins on Trac add link elements?
comment:2 by , 12 years ago
Replying to Ryan J Ollos <ryan.j.ollos@…>:
Which other plugins on Trac add link elements?
Sorry, I meant Trac and/or Trac-Hacks.
follow-up: 8 comment:3 by , 12 years ago
Replying to Ryan J Ollos <ryan.j.ollos@…>:
Replying to Chris.Nelson@…:
The buttons plugins add to ticket pages (Create, Delete, etc.) have a range of plugin-specific styles.
Plugins provided with Trac,
tracopt.ticket.clone
andtracopt.ticket.deleter
, addinput
elements for the buttons, so it looks like the Clone and Delete buttons should be okay (and even for Trac < 0.12, the th:TicketDeletePlugin appears to add an input element within thediv.inlinebuttons
). You mentioned Create, and I don't think I've seen a plugin that adds a Create button.Which other plugins on Trac add link elements?
I believe SubticketsPlugin does. I know my TicketCreateButtonsPlugin plugin does.
follow-up: 6 comment:4 by , 10 years ago
The proposed change in [f22fa670/rjollos.git#file0] would allow adding the inlinebuttons
class to a div
or span
that wraps a link. Would that be sufficient for your needs?
comment:5 by , 10 years ago
Cc: | removed |
---|---|
Milestone: | next-dev-1.1.x → 1.1.3 |
Owner: | set to |
Status: | new → assigned |
follow-up: 7 comment:6 by , 10 years ago
Replying to rjollos:
The proposed change in [f22fa670/rjollos.git#file0] would allow adding the
inlinebuttons
class to adiv
orspan
that wraps a link. Would that be sufficient for your needs?
I suspect it is inadequate because it leaves the text with a relative size so depending on the context, the buttons may have different sizes. We have a Trac 1.0 version of this but I am out of the office. I can try to attach it when I return.
comment:7 by , 10 years ago
Replying to Chris.Nelson@…:
Replying to rjollos:
The proposed change in [f22fa670/rjollos.git#file0] would allow adding the
inlinebuttons
class to adiv
orspan
that wraps a link. Would that be sufficient for your needs?I suspect it is inadequate because it leaves the text with a relative size so depending on the context, the buttons may have different sizes. We have a Trac 1.0 version of this but I am out of the office. I can try to attach it when I return.
I've commented about tweaking style of the link buttons. See comment:11:ticket:6573.
by , 10 years ago
Attachment: | TicketCreateButtons.png added |
---|
follow-up: 9 comment:8 by , 10 years ago
Replying to Chris.Nelson@…:
I believe SubticketsPlugin does. I know my TicketCreateButtonsPlugin plugin does.
I did some testing.
TicketCreateButtons adds input
elements: browser:/ticketcreatebuttonsplugin/0.11/ticketCreateButtons/ticketCreateButtons.py@9441:114-115#L111. The inlinebuttons
styling is applied to those.
I don't see any "actionable" links created by SubticketsPlugin.
The TicketCreateButtonsPlugin button are smaller than the buttons below the description, but that might be better fixed with some styling for TicketCreateButtonsPlugin. That would be the only open action item I see in this ticket after the changes in #6573 are committed.
comment:9 by , 10 years ago
Replying to rjollos:
Replying to Chris.Nelson@…:
I believe SubticketsPlugin does. I know my TicketCreateButtonsPlugin plugin does.
I did some testing.
Empirical evidence is always best!
TicketCreateButtons adds
input
elements: browser:/ticketcreatebuttonsplugin/0.11/ticketCreateButtons/ticketCreateButtons.py@9441:114-115#L111. Theinlinebuttons
styling is applied to those.I don't see any "actionable" links created by SubticketsPlugin.
It has a button to create children. I'll attach an example.
The TicketCreateButtonsPlugin button are smaller than the buttons below the description, but that might be better fixed with some styling for TicketCreateButtonsPlugin. That would be the only open action item I see in this ticket after the changes in #6573 are committed.
Well, I'd argue that it should be trivial to create buttons like Trac does by using its style, not requiring any overrides or customization. But it's not worth a lot to me.
by , 10 years ago
Attachment: | Subtickets Create Button.png added |
---|
Example of Subtickets button to create children
comment:10 by , 10 years ago
comment:11 by , 10 years ago
Milestone: | 1.1.3 → next-dev-1.1.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:12 by , 10 years ago
Milestone: | next-dev-1.1.x → 1.1.5 |
---|
comment:13 by , 10 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:14 by , 10 years ago
Milestone: | 1.1.5 → 1.2 |
---|
comment:16 by , 10 years ago
Milestone: | 1.1.6 → next-dev-1.1.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:17 by , 9 years ago
Reporter: | changed from | to
---|
comment:18 by , 9 years ago
Milestone: | next-dev-1.1.x → next-dev-1.3.x |
---|
Narrowing focus for milestone:1.2. Please move ticket to milestone:1.2 if you intend to fix it.
comment:20 by , 5 years ago
Milestone: | next-dev-1.5.x → next-major-releases |
---|
Patch to make inline buttons consistent, add inlinelinkbutton style