<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/lib/html_element.rb, branch fix-routes-editor</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Fixes: #3478@2.5h</title>
<updated>2017-07-10T07:23:46+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-07-07T16:29:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7c7451dc80b6f9b6092b3262fe524a8252309b1a'/>
<id>7c7451dc80b6f9b6092b3262fe524a8252309b1a</id>
<content type='text'>
- Decorator Spec Setup `spec/support/decortor_helpers.rb`
- Speced
- Fixed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Decorator Spec Setup `spec/support/decortor_helpers.rb`
- Speced
- Fixed
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialDecorator: Handle non-`Link` buttons</title>
<updated>2017-06-15T15:44:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T15:44:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1d489cef3b9aeb474071b89be6d256e554182863'/>
<id>1d489cef3b9aeb474071b89be6d256e554182863</id>
<content type='text'>
Referentials#show has a button "Purger" that isn't a link. Instead, it's
a `&lt;button&gt;` element that opens a modal.

Previously, we only knew how to put `Link`s in the `#action_links`, and
only these could then be rendered in the header bar as buttons.

This change allows us to accept non-Link objects. Since the button is
rather simple, I decided to create a simple `HTMLElement` class to
represent it and output it in the resulting HTML. The class uses the
`#content_tag` `ActionView` helper to render the final HTML.

Update "referentials/show.html.slim" to output the button correctly in
addition to the normal links.

Update `TableBuilderHelper#build_links` to not add anything that's not a
`Link` to the gear menu. This allows us to display the "Purger" button
on the Referentials#show page but not in the table on Workbenches#show.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Referentials#show has a button "Purger" that isn't a link. Instead, it's
a `&lt;button&gt;` element that opens a modal.

Previously, we only knew how to put `Link`s in the `#action_links`, and
only these could then be rendered in the header bar as buttons.

This change allows us to accept non-Link objects. Since the button is
rather simple, I decided to create a simple `HTMLElement` class to
represent it and output it in the resulting HTML. The class uses the
`#content_tag` `ActionView` helper to render the final HTML.

Update "referentials/show.html.slim" to output the button correctly in
addition to the normal links.

Update `TableBuilderHelper#build_links` to not add anything that's not a
`Link` to the gear menu. This allows us to display the "Purger" button
on the Referentials#show page but not in the table on Workbenches#show.

Refs #3479
</pre>
</div>
</content>
</entry>
</feed>
