Added "Send" button to "New Post" window
+Added Profile view
+Added follow and unfollow possibility
+ +Removed Photo post type because the Tent protocol in version 0.1.0 does not quite support it yet
diff --git a/Mac/send.png b/Mac/send.png new file mode 100644 index 0000000..77b9151 Binary files /dev/null and b/Mac/send.png differ diff --git a/WebKit/img/send.png b/WebKit/img/send.png new file mode 100644 index 0000000..77b9151 Binary files /dev/null and b/WebKit/img/send.png differ diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 8c0d8e7..070f6d7 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -128,6 +128,7 @@ function(HostApp, Core, Paths, URI) { this.profile_template.gender.parentNode.style.display = "none"; this.profile_template.url.parentNode.parentNode.style.display = "none"; + this.profile_template.following_button.style.display = ""; this.setFollowingButton(false); this.body.innerHTML = ""; @@ -137,6 +138,10 @@ function(HostApp, Core, Paths, URI) { var _this = this; + if (HostApp.stringForKey("entity") == this.entity) { + this.profile_template.following_button.style.display = "none"; + } + Paths.findProfileURL(this.entity, function(profile_url) { if (profile_url) { diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index 47d21b9..d4b43ad 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -229,6 +229,10 @@ function(jQuery, Paths, URI, HostApp, Followings) { template.reposted_by.innerText = status.__repost.entity; template.reposted_by.title = status.__repost.entity; template.reposted_by.style.display = ''; + template.reposted_by.onclick = function(e) { + HostApp.showProfileForEntity(status.__repost.entity); + return false; + } if (this.followings.followings[status.__repost.entity]) {