<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/views/referentials, branch check_policy_specs</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Refs: #3595@0.5h live event subscription &amp; smart_date class added to all date input elements</title>
<updated>2017-06-27T18:11:18+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-06-27T17:58:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=083d23585935139b5e87b99bf5cc2a79f4a53cca'/>
<id>083d23585935139b5e87b99bf5cc2a79f4a53cca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/master' into 3479-refactor-table_builder-helper</title>
<updated>2017-06-19T09:03:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-19T09:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a6b84e751068da4cce61aec75690a2d1ea295b13'/>
<id>a6b84e751068da4cce61aec75690a2d1ea295b13</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove fields from referential new</title>
<updated>2017-06-16T10:21:15+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2017-06-16T09:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ec35d1614555621a23b6688839ce2b223126e851'/>
<id>ec35d1614555621a23b6688839ce2b223126e851</id>
<content type='text'>
Refs #3657
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #3657
</pre>
</div>
</content>
</entry>
<entry>
<title>referentials/show.html.slim: Remove commented header links</title>
<updated>2017-06-15T16:07:13+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T16:07:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=8be607f4a481099a5c29b4eb8de3026bf1e83900'/>
<id>8be607f4a481099a5c29b4eb8de3026bf1e83900</id>
<content type='text'>
Now that we've integrated the `#action_links` from
`ReferentialDecorator`, all these `link_to`s are taken care of by our
loop just below the removed commented code.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we've integrated the `#action_links` from
`ReferentialDecorator`, all these `link_to`s are taken care of by our
loop just below the removed commented code.

Refs #3479
</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>
<entry>
<title>referentials/show.html.slim: Update `action_links` loop for Link#content</title>
<updated>2017-06-15T15:04:58+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T15:04:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=8e678905af6be3358069a9d51f7af88d3449f014'/>
<id>8e678905af6be3358069a9d51f7af88d3449f014</id>
<content type='text'>
Now that the `Link` class no longer has a :name attribute, use the
:content attribute instead and get our delete button markup handling
from `ReferentialDecorator`.

TODO: This messes up the styles on this page as here there's a `&lt;span&gt;`
around the link text and in the tables there's no span.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that the `Link` class no longer has a :name attribute, use the
:content attribute instead and get our delete button markup handling
from `ReferentialDecorator`.

TODO: This messes up the styles on this page as here there's a `&lt;span&gt;`
around the link text and in the tables there's no span.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>referentials/show.html.slim: Extract header buttons to a decorator</title>
<updated>2017-06-12T16:59:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-12T16:59:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=07ed048cd2f2231fa26345a94c725363344ee77b'/>
<id>07ed048cd2f2231fa26345a94c725363344ee77b</id>
<content type='text'>
Add a new `ReferentialDecorator` that we can use to define the links
that appear as buttons in the header of the `/referentials/:id` page.

The idea is that these links will take the place of the existing view
code and in the view, we'll instead loop over the links provided by the
decorator and render them as buttons.

I decided to do it this way because there's a requirement that the links
in the gear menu in tables show the same links that appear in the header
of the page. So the Workbenches#show page would show a table of
referentials, and their gear menu links should ostensibly be the same as
the header links in the Referentials#show page.

My goal was to abstract links, and try to separate them from the
presentation layer. Still having trouble with this though. I created a
new `Link` class to represent a link. We can then use this in the
template to create a `link_to`. It becomes messy, though, when we want
to put other elements inside a certain link, as evidenced by the
`:delete` link. Don't like how that's done, but still working out the
best approach to make it cleaner.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new `ReferentialDecorator` that we can use to define the links
that appear as buttons in the header of the `/referentials/:id` page.

The idea is that these links will take the place of the existing view
code and in the view, we'll instead loop over the links provided by the
decorator and render them as buttons.

I decided to do it this way because there's a requirement that the links
in the gear menu in tables show the same links that appear in the header
of the page. So the Workbenches#show page would show a table of
referentials, and their gear menu links should ostensibly be the same as
the header links in the Referentials#show page.

My goal was to abstract links, and try to separate them from the
presentation layer. Still having trouble with this though. I created a
new `Link` class to represent a link. We can then use this in the
template to create a `link_to`. It becomes messy, though, when we want
to put other elements inside a certain link, as evidenced by the
`:delete` link. Don't like how that's done, but still working out the
best approach to make it cleaner.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>Referential Cleanup add date_type</title>
<updated>2017-06-05T15:24:59+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2017-06-05T14:47:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7982b2654967fc7e6517fa78da3dba7ad0e4d185'/>
<id>7982b2654967fc7e6517fa78da3dba7ad0e4d185</id>
<content type='text'>
Refs #3662
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #3662
</pre>
</div>
</content>
</entry>
<entry>
<title>Referential Cleanup add date_type</title>
<updated>2017-06-05T14:47:06+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2017-06-05T14:47:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f422c130f9bda3c425cc3e1b9604345ca3586fe1'/>
<id>f422c130f9bda3c425cc3e1b9604345ca3586fe1</id>
<content type='text'>
Refs #3662
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #3662
</pre>
</div>
</content>
</entry>
<entry>
<title>hotfix</title>
<updated>2017-05-31T15:28:31+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-05-31T15:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=53fee6c7b1614f75ea5a5691d03c17f3caa58ac1'/>
<id>53fee6c7b1614f75ea5a5691d03c17f3caa58ac1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
