<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/lib/af83, branch 6979-ruby-controls-sets</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 #6426; Disable "Create opposite route" action instead of hiding it</title>
<updated>2018-04-11T06:28:47+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-06T12:46:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4'/>
<id>03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5669 @2h; Fix Specs</title>
<updated>2018-02-09T09:22:01+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-08T12:48:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=708c2fbe2f579426972a45f9a716d844a8e825ae'/>
<id>708c2fbe2f579426972a45f9a716d844a8e825ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5683 @2H; Fix specs and refactor action_links</title>
<updated>2018-01-31T10:39:39+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-31T10:39:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=fe7915ffac359db41c7737a3847f31a728f502e6'/>
<id>fe7915ffac359db41c7737a3847f31a728f502e6</id>
<content type='text'>
Note: Did not fix the missing workgroup in the calendar mailer
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Note: Did not fix the missing workgroup in the calendar mailer
</pre>
</div>
</content>
</entry>
<entry>
<title>ComplianceControlDecorator: Convert to new action links interface</title>
<updated>2018-01-25T16:18:03+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-25T14:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9f6c7a5372d960eea49f5428975d7a92f6f91d33'/>
<id>9f6c7a5372d960eea49f5428975d7a92f6f91d33</id>
<content type='text'>
* Decorate the `ComplianceControl` so we can show the action links from
  the decorator in the header.
* Add a `decorates` to get `object_class` to work inside the decorator.
* Define `AF83::Decorator.define_instance_class_method` in order to
  enable the `@compliance_control.class.METHOD` calls in the view to
  work. Thanks very much to Johan for figuring out a way to do that.

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Decorate the `ComplianceControl` so we can show the action links from
  the decorator in the header.
* Add a `decorates` to get `object_class` to work inside the decorator.
* Define `AF83::Decorator.define_instance_class_method` in order to
  enable the `@compliance_control.class.METHOD` calls in the view to
  work. Thanks very much to Johan for figuring out a way to do that.

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>AF83::Decorator::Link: Add `data-method` to HTML options</title>
<updated>2018-01-25T16:18:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-25T11:05:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e926c05033bef396b69fca05db75847707bbf6f0'/>
<id>e926c05033bef396b69fca05db75847707bbf6f0</id>
<content type='text'>
Previously, we weren't correctly adding the HTTP method to the links in
the header. This is because it's called `link_method` in the class. Put
this value in `method`/`data-method` when converting the link to HTML so
that the links work properly.

Discovered this when deactivating and activating stop areas on
http://stif-boiv.dev:3000/stop_area_referentials/1/stop_areas/139429 .

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we weren't correctly adding the HTTP method to the links in
the header. This is because it's called `link_method` in the class. Put
this value in `method`/`data-method` when converting the link to HTML so
that the links work properly.

Discovered this when deactivating and activating stop areas on
http://stif-boiv.dev:3000/stop_area_referentials/1/stop_areas/139429 .

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>AF83::Decorator::Link: Delete `#default_class`</title>
<updated>2018-01-25T16:18:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-25T10:57:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a636969d6e588f0fb7d155bbc22582f742da8e48'/>
<id>a636969d6e588f0fb7d155bbc22582f742da8e48</id>
<content type='text'>
This method was overriding classes that were added by `#add_class` in
addition to those added by `#class`. Obviously, the argument to
`#add_class` should be appended to the default.

That seemed like a pain to do, so instead I'm getting rid of the concept
of a default class. Instead, we're going to force all links to use the
template-defined styles for now. That goes in line with Luc's desire to
be more consistent in the links, as he stated yesterday.

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This method was overriding classes that were added by `#add_class` in
addition to those added by `#class`. Obviously, the argument to
`#add_class` should be appended to the default.

That seemed like a pain to do, so instead I'm getting rid of the concept
of a default class. Instead, we're going to force all links to use the
template-defined styles for now. That goes in line with Luc's desire to
be more consistent in the links, as he stated yesterday.

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>PurchaseWindowDecorator: Convert to new action links interface</title>
<updated>2018-01-25T16:18:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-24T16:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=c02c597cfcd8d21c9bf59d41dbd312e9c26289b8'/>
<id>c02c597cfcd8d21c9bf59d41dbd312e9c26289b8</id>
<content type='text'>
Also add a new method `AF83::Decorator.define_instance_method`. Thanks
to Johan for suggesting that and walking me through writing it. This new
method allows us to define methods on the instance decorator. We need
this to preserve the `#bounding_dates` method that was defined in
`PurchaseWindowDecorator`.

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add a new method `AF83::Decorator.define_instance_method`. Thanks
to Johan for suggesting that and walking me through writing it. This new
method allows us to define methods on the instance decorator. We need
this to preserve the `#bounding_dates` method that was defined in
`PurchaseWindowDecorator`.

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>AF83::Decorator::Link: Change #class? to #default_class</title>
<updated>2018-01-25T16:18:01+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-23T13:45:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=4e034f42107a2016db3a032d3c0cd1a5f8e43635'/>
<id>4e034f42107a2016db3a032d3c0cd1a5f8e43635</id>
<content type='text'>
Instead of checking for an existing class and then setting the class,
provide a method to set a default class when one hasn't been defined.

This does effectively the same thing but moves the condition inside the
method.

Thanks Johan for the suggestion!

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of checking for an existing class and then setting the class,
provide a method to set a default class when one hasn't been defined.

This does effectively the same thing but moves the condition inside the
method.

Thanks Johan for the suggestion!

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>Imports#index: Move 'New import' button to action links</title>
<updated>2018-01-25T16:18:01+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-23T10:42:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=759699cec33a06b931c50f4473460fb79290e356'/>
<id>759699cec33a06b931c50f4473460fb79290e356</id>
<content type='text'>
Begin the process of converting the `ImportDecorator` to the new action
links interface.

For now, only the "New import" button on the top right of the index page
is converted. The rest of the links are commented out for now and will
be treated in a subsequent commit.

Add a new `#class?` method to `AF83::Decorator::Link` that tells callers
whether a CSS class has been defined on the link. This allows us to
determine whether we should force a class or use the one provided in
`_page_header.html.slim`.

We need a way to specify the class of the link in the header because the
"New import" button is supposed to be blue (`.btn-primary`), but the
default for primary action links is white.

Refs #5586
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Begin the process of converting the `ImportDecorator` to the new action
links interface.

For now, only the "New import" button on the top right of the index page
is converted. The rest of the links are commented out for now and will
be treated in a subsequent commit.

Add a new `#class?` method to `AF83::Decorator::Link` that tells callers
whether a CSS class has been defined on the link. This allows us to
determine whether we should force a class or use the one provided in
`_page_header.html.slim`.

We need a way to specify the class of the link in the header because the
"New import" button is supposed to be blue (`.btn-primary`), but the
default for primary action links is white.

Refs #5586
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5586; CR #2</title>
<updated>2018-01-25T16:18:01+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-22T10:39:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9f4584ef7427575fce4b8294b79f2368b130d8b6'/>
<id>9f4584ef7427575fce4b8294b79f2368b130d8b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
