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 +4 -4
- data/CHANGELOG.md +7 -0
- data/app/helpers/members_helper.rb +11 -0
- data/app/views/members/show.html.erb +10 -10
- data/app/views/profiles/show.html.erb +4 -4
- data/lib/tkh_mailing_list/version.rb +1 -1
- data/tkh_mailing_list.gemspec +1 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bce2ea0d41e83f9b53c8d4b9a3b9a9c7dda0b8b
|
4
|
+
data.tar.gz: ee57b96e0e0a1e3709f2b706ae570a7a7cb1bd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
@@ -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
|
5
|
+
<% if @member.other_name.present? %>
|
6
6
|
<h1>
|
7
|
-
<%=
|
8
|
-
<span class="secondary-name"><%=
|
7
|
+
<%= @member.other_name %><br />
|
8
|
+
<span class="secondary-name"><%= @member.name %></span>
|
9
9
|
</h1>
|
10
10
|
<% else %>
|
11
|
-
<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:
|
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
|
21
|
-
<tr><td class="key">facebook</td><td class="value"><%= link_to
|
22
|
-
<tr><td class="key">twitter</td><td class="value"><%= link_to
|
23
|
-
<tr><td class="key">google+</td><td class="value"><%= link_to
|
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>
|
data/tkh_mailing_list.gemspec
CHANGED
@@ -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
|
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.
|
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
|
124
|
+
summary: This gem inherits from the tkh_authentication gem and allows administrators
|
124
125
|
to manage user records
|
125
126
|
test_files: []
|