Extended Profile 1.1.0 for Redmine 2.x
Right after the Extended Fields release - here it is, Extended Profile for Redmine 1.4.x, 2.0.x and 2.1.x.
This is a fully maintenance release as it has no new features and only adds support for Redmine 1.4.x, 2.0.x and 2.1.x. This release is accompanying the release of the Extended Fields 0.2.0b, what is natural as the Extended Profile plugin uses the Extended Fields for building user profiles.
This release also removes the extended_profile
table, which was used by the version 0.x.x of the plugin. This table, as well as version 0.x.x, is now obsolete.
extended_profile
table for archiving purposes before upgrading this plugin.The release also contains the fix for the bug #1972, reported by Ki Won Kim.
This version was also planned to include the Twitter “Follow” button instead of just link to the user profile on Twitter... But in the very last moment I changed my mind. Why? I thought, that before following someone I, personally, would want to check, what actually he/she tweets...
However, let it be the bonus of this news. If you want to have the Twitter “Follow” button, replace the content of the app/views/custom_values/string/_twitter.html.erb
file with:
<% mention = custom_field.value.start_with?('@') ? custom_field.value : "@#{custom_field.value}" %>
<% username = custom_field.value.gsub(%r{^@}, '') %>
<a href="https://twitter.com/<%= h(username) %>" class="twitter-follow-button" data-show-count="false"><%= h(mention) %></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Or download it from export:v1/app/views/custom_values/string/_twitter.html.erb@37 (this is the older version of the file).
To be notified about future releases of the Extended Profile plugin subscribe to this project using the subscription form on the sidebar. This form is provided by the Subscription plugin, which has not been released yet (need to port every other plugin to Redmine 2.x first)...
P.S. The next plugin is the Author Box, which the Extended Profile utilizes (if installed, of course) by addings additional data to author boxes...
Comments