Skip to content
Snippets Groups Projects
Commit cededfb4 authored by John's avatar John
Browse files

Wiki wiki wut

parent 65e7c135
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -478,6 +478,9 @@ interface GitLabService {
@Path("note_id") noteId: String,
@Path("award_id") awardId: String): Single<AwardEmoji>
 
@GET("projects/{id}/wikis")
fun getWikiPages(@Path("id") projectId: Long): Single<List<Wiki>>
/* --- MISC --- */
@GET
fun getRaw(@Url url: String): Single<String>
Loading
Loading
package com.commit451.gitlab.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.commit451.gitlab.R
class WikiFragment : ButterKnifeFragment() {
companion object {
fun newInstance(): WikiFragment {
return WikiFragment()
}
}
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
return inflater.inflate(R.layout.fragment_wiki, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
}
}
\ No newline at end of file
package com.commit451.gitlab.model.api
import com.squareup.moshi.Json
import org.parceler.Parcel
@Parcel(Parcel.Serialization.BEAN)
open class Wiki {
@field:Json(name = "content")
var content: String? = null
@field:Json(name = "format")
var format: String? = null
@field:Json(name = "slug")
var slug: String? = null
@field:Json(name = "title")
var title: String? = null
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@string/no_wiki"
android:gravity="center"
android:layout_gravity="center"
android:visibility="gone" />
</FrameLayout>
Loading
Loading
@@ -212,6 +212,7 @@
<string name="created_issue">created issue</string>
<string name="error_changing_issue">There was an error changing the issue</string>
<string name="no_issues">No issues</string>
<string name="no_wiki">No wiki</string>
<string name="issue_opened">Opened</string>
<string name="issue_open">Open</string>
<string name="issue_closed">Closed</string>
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment