tkh_mailing_list 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b5a07a6988a466c208dd6b462bfebfb7aedaa4a
4
- data.tar.gz: b90dde936c41b4fdf2a36cb5e558698173e2be24
3
+ metadata.gz: 9bce2ea0d41e83f9b53c8d4b9a3b9a9c7dda0b8b
4
+ data.tar.gz: ee57b96e0e0a1e3709f2b706ae570a7a7cb1bd11
5
5
  SHA512:
6
- metadata.gz: 17f8e03f0e9706e00ef363b5260c8c355cb89d0d8163ec08050fefa9c9c09e4a1cc4eb774b5af7ae540ef2175d5e11f313054796726266c48f276d8bb6e252da
7
- data.tar.gz: a8bea57a1b7ed011177efd05e7c51e4b9d872980d412593bfb59997f14c784d882a2bf98d40f7f15a878d1d072580bd9fe869ec8d5fc7f37a899b87dd54d6ce4
6
+ metadata.gz: e68e2a0a3b33591cb408aaa26952046f150cfeefaafc55120f6209a5d0150f1bd9189c2410415aa7fe48a08c9463eef554a468384aa353b5e9036f91e27904dc
7
+ data.tar.gz: 1cc652572aa327c2001ed0f4c02db5036dc910d19d0c279e28736388558cd91f3d34995b07e56fab8e26772064e76f4b19de31ae133961778c7e6c169f1c15d2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.10.3
6
+
7
+ * Added rel-nofollow to public profile links.
8
+ * Removed http and https from profile link anchors.
9
+ * Debugged and improved public profile view and links.
10
+
11
+
5
12
  ## 0.10.2
6
13
 
7
14
  * Imported manually the jcrop files so host application does not need to install any gems.
@@ -0,0 +1,11 @@
1
+ module MembersHelper
2
+
3
+ def abridged_url(str)
4
+ if str.present?
5
+ uri = URI(str)
6
+ "#{uri.host}#{uri.path}#{uri.query}#{uri.fragment}"
7
+ else # string is blank
8
+ ''
9
+ end
10
+ end
11
+ end
@@ -2,26 +2,26 @@
2
2
  <% content_for :meta_description, "Public profile for #{@member.name}" %>
3
3
 
4
4
  <div id="profile-title">
5
- <% if student.other_name.present? %>
5
+ <% if @member.other_name.present? %>
6
6
  <h1>
7
- <%= student.other_name %><br />
8
- <span class="secondary-name"><%= student.name %></span>
7
+ <%= @member.other_name %><br />
8
+ <span class="secondary-name"><%= @member.name %></span>
9
9
  </h1>
10
10
  <% else %>
11
- <h1><%= student.name %></h1>
11
+ <h1><%= @member.name %></h1>
12
12
  <% end %>
13
13
  <% if Profile.find(@member.id).portrait.present? %>
14
- <p id="profile-portrait"><%= image_tag Profile.find(@member.id).portrait_url(:small), title: student.name, alt: student.name, id: 'profile-portrait' %></p>
14
+ <p id="profile-portrait"><%= image_tag Profile.find(@member.id).portrait_url(:small), title: @member.name, alt: @member.name, id: 'profile-portrait' %></p>
15
15
  <% end %>
16
16
  </div>
17
17
 
18
18
  <table id="profile-attributes">
19
19
  <tbody>
20
- <tr><td class="key">website</td><td class="value"><%= link_to student.website_url, student.website_url %></td></tr>
21
- <tr><td class="key">facebook</td><td class="value"><%= link_to student.facebook_url, student.facebook_url %></td></tr>
22
- <tr><td class="key">twitter</td><td class="value"><%= link_to student.twitter_handle, "https://twitter.com/#{student.twitter_handle}" %></td></tr>
23
- <tr><td class="key">google+</td><td class="value"><%= link_to student.google_plus_url, student.google_plus_url %></td></tr>
24
- <%= render 'profiles/custom_public_profile_attributes' %>
20
+ <tr><td class="key">website</td><td class="value"><%= link_to abridged_url(@member.website_url), @member.website_url, rel: 'nofollow' %></td></tr>
21
+ <tr><td class="key">facebook</td><td class="value"><%= link_to abridged_url(@member.facebook_url), @member.facebook_url, rel: 'nofollow' %></td></tr>
22
+ <tr><td class="key">twitter</td><td class="value"><%= @member.twitter_handle.present? ? link_to( @member.twitter_handle, "https://twitter.com/#{@member.twitter_handle}", rel: 'nofollow' ) : '' %></td></tr>
23
+ <tr><td class="key">google+</td><td class="value"><%= link_to abridged_url(@member.google_plus_url), @member.google_plus_url, rel: 'nofollow' %></td></tr>
24
+ <%= render 'profiles/custom_public_profile_attributes', member: @member %>
25
25
  </tbody>
26
26
  </table>
27
27
 
@@ -35,10 +35,10 @@
35
35
  <tr><td class="key">first name</td><td class="value"><%= @profile.first_name %></td></tr>
36
36
  <tr><td class="key">last name</td><td class="value"><%= @profile.last_name %></td></tr>
37
37
  <tr><td class="key"><%= render 'shared/other_name_label' %></td><td class="value"><%= @profile.other_name %></td></tr>
38
- <tr><td class="key">website</td><td class="value"><%= link_to student.website_url, student.website_url %></td></tr>
39
- <tr><td class="key">facebook</td><td class="value"><%= link_to student.facebook_url, student.facebook_url %></td></tr>
40
- <tr><td class="key">twitter</td><td class="value"><%= link_to student.twitter_handle, "https://twitter.com/#{student.twitter_handle}" %></td></tr>
41
- <tr><td class="key">google+</td><td class="value"><%= link_to student.google_plus_url, student.google_plus_url %></td></tr>
38
+ <tr><td class="key">website</td><td class="value"><%= link_to "#{URI(student.website_url).host}#{URI(student.website_url).path}#{URI(student.website_url).query}#{URI(student.website_url).fragment}", student.website_url, rel: 'nofollow' %></td></tr>
39
+ <tr><td class="key">facebook</td><td class="value"><%= link_to "#{URI(student.facebook_url).host}#{URI(student.facebook_url).path}#{URI(student.facebook_url).query}#{URI(student.facebook_url).fragment}", student.facebook_url, rel: 'nofollow' %></td></tr>
40
+ <tr><td class="key">twitter</td><td class="value"><%= link_to student.twitter_handle, "https://twitter.com/#{student.twitter_handle}", rel: 'nofollow' %></td></tr>
41
+ <tr><td class="key">google+</td><td class="value"><%= link_to "#{URI(student.google_plus_url).host}#{URI(student.google_plus_url).path}#{URI(student.google_plus_url).query}#{URI(student.google_plus_url).fragment}", student.google_plus_url, rel: 'nofollow' %></td></tr>
42
42
  <%= render 'custom_public_profile_attributes' %>
43
43
 
44
44
  </tbody>
@@ -1,3 +1,3 @@
1
1
  module TkhMailingList
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Swami Atma"]
10
10
  spec.email = ["swami@TenThousandHours.eu"]
11
11
  spec.description = %q{A mailing list module to work with tkh_authentication gem}
12
- spec.summary = %q{This gem inherits from the tkh_authentication gem and allow administrators to manage user records}
12
+ spec.summary = %q{This gem inherits from the tkh_authentication gem and allows administrators to manage user records}
13
13
  spec.homepage = "https://github.com/allesklar/tkh_mailing_list"
14
14
  spec.license = "MIT"
15
15
 
@@ -18,8 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- # spec.add_dependency 'jcrop-rails-v2'
22
-
23
21
  spec.add_development_dependency "bundler", "~> 1.3"
24
22
  spec.add_development_dependency "rake"
25
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_mailing_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
@@ -59,6 +59,7 @@ files:
59
59
  - app/controllers/details_controller.rb
60
60
  - app/controllers/members_controller.rb
61
61
  - app/controllers/profiles_controller.rb
62
+ - app/helpers/members_helper.rb
62
63
  - app/models/detail.rb
63
64
  - app/models/member.rb
64
65
  - app/models/profile.rb
@@ -120,6 +121,6 @@ rubyforge_project:
120
121
  rubygems_version: 2.2.2
121
122
  signing_key:
122
123
  specification_version: 4
123
- summary: This gem inherits from the tkh_authentication gem and allow administrators
124
+ summary: This gem inherits from the tkh_authentication gem and allows administrators
124
125
  to manage user records
125
126
  test_files: []