| Total Complexity | 6 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | |||
| 23 | ) |
||
| 24 | return dct |
||
| 25 | |||
| 26 | @property |
||
| 27 | def as_button(self): |
||
| 28 | dct = self.as_link |
||
| 29 | css = dct.get('css') |
||
| 30 | dct.update( |
||
| 31 | type='button', |
||
| 32 | css='button{}{}'.format(' ' if css else '', css) |
||
| 33 | ) |
||
| 34 | return dct |
||
| 35 | |||
| 36 | @property |
||
| 37 | def as_stylesheet(self): |
||
| 38 | dct = self.as_base |
||
| 39 | dct.update( |
||
| 40 | type='stylesheet', |
||
| 41 | href=self.kwargs.get('href') |
||
| 42 | ) |
||
| 43 | return dct |
||
| 57 |